What is a WordPress taxonomy?

In WordPress, a “taxonomy” is a grouping mechanism for some posts (or links or custom post types). There are four default taxonomies in WordPress they are

  • Category
  • Tag
  • Link Category
  • Post Formats

You are also free to create your custom taxonomies too.

What are the template tags in WordPress?

A template tag is a code that instructs WordPress to “do” or “get” something. Like in the header.php, we use the tag bloginfo ( ‘name’ ) to get “Site Title” from the wp-options table which is set in Setting > General in WordPress admin.

The the_title() template tag is used to display the post title.

wp_list_cats() is to display categories.

get_header() for getting header.

get_sidebar() to display the sidebar on page.

get_footer() to get the footer content on page.

What are the features of WordPress?

WordPress powers more than 28% of the web and this figure is not limited it rises every day. Everything from simple websites, to blogs, to complex portals and enterprise websites, and even applications, are built with WordPress.

Here are some of the features of WordPress.

  • It’s Simplicity
  • Easier publishing tools
  • Search Engine Optimized
  • User Management
  • Media Management
  • Easy Theme System
  • Extend Easily with Plugins
  • Multilingual Support
  • Easy Installation and Upgrades
  • Multilingual Support
  • Built-in Comments System
  • Custom Content Types

How to add custom field under WordPress general settings

To add custom fields under WordPress general settings without hacking core code, use the below example. Here’s how to add custom field under WordPress general settings page.

add_filter('admin_init', 'register_my_general_settings_fields');
function register_my_general_settings_fields()
{
register_setting('general', 'custom_field', 'esc_attr');
add_settings_field('custom_field', '<label for="custom_field">'.__('Custom Field' , 'custom_field' ).'</label>' , 'general_settings_custom_fields_html', 'general');
}
function general_settings_custom_fields_html()
{
$value = get_option( 'custom_field', '' );
echo '<input type="text" id="custom_field" name="custom_field" value="' . $value . '" />';
}

Please let me know, If you have any queries or feedback.