what is post and texonomy .?
Texonomy:-
Ans: Texonomy in WordPress is one of those things that everyone use. WordPress texonomies are used as a way to group posts and custom post types together.
Two Taxonomies are there:
1) Categories:- Like hierarchie of books.
2) Tags:- Tag is a like a individual or without any relation to other.
Using the texonomy we can create the group like a bunch of books that have same author.
Taxonomies can also be hierachicle.
We will use two methods to create custm taxonomies. First one would utilize a plugin for those who choose not to deal with coding and another one would be the code method for those who prefer to do everything without a plugin.
Post:-
Posts are entries listed on the blog home page or on the post page. You can set this one in settings->Reading.Posts can be found in the Archives, Categories, Recent Posts and other widgets.And one most things sticky posts will appear before the other posts (means on the TOP).You can control how many posts are displayed at a time in the Settings->Reading.Posts are also displayed in the RSS feed of the blog.Posts are always associated with a date which is included in the URL.Simple and easiest way to add new postnis on the right side of toolbar post->Add New and then fill up all the details and than publish to view on the client side. without publish the content is not saved.
Five Types of Post Types are available to users:-
1) Post (Post Type: “POST”)
2) Page (Post Type: “PAGE”)
3) Attachment (Post Type: “ATTACHMENT”)
4) Revision (Post Type: “REVISION”)
5) Navigation Menu (Post Type: “nav_menu_item”)
============================================================================================================================================
what is custom post type and custom texonomy?
Ans: Texonomies are a great way to grou things together and help us to search posts belonging to a specific group.Generally we use Category and Tags as taxonomies.
You can create this through coding follow this steps:-
===========================================================
1. Register Custom Function
-> Open your plugin file, in my case podplus.php and add the below code to register the custom function.
add_action(‘init’,’create_my_taxonomies’,0);
2. Implementation of Custom Function and Registering Custom Taxonomy
->
function create_my_taxonomies() {
register_taxonomy(
‘podplus’,
‘podplus_reviews’,
array(
‘labels’ => array(
‘name’ => ‘Podplus Advance’,
‘add_new_item’ => ‘Add New Podplus Advance’,
‘new_item_name’ => “New Podplus Type plus”
),
‘show_ui’ => true,
‘show_tagcloud’ => false,
‘hierarchical’ => true
)
);
}
‘Show_ui’ => true is used to make the taxonomy editor visible in the dashboard.
‘show_tagcloud’ => false decode whether the tag cloud should be visible. In our case it’s disabled.
‘hierarchical’ => true decodes the format of the custom taxonomy.
If ‘hierarchical’ => false then it converts the categories into tags.
3. Displaying Custom Taxonomies
-> Save the podplus.php file and open your custom template file, in my case single-podplus.php and add the following code to make the category visible in our posts.
<strong>Advance: </strong>
<?php
the_terms( $post->ID, ‘podplus_advance’ , ‘ ‘ );
?>
Better be safe than sorry when registering custom taxonomies for custom post types. Use register_taxonomy_for_object_type() right after the function to interconnect them. Else you could run into minetraps where the post type isn't attached inside filter callback that run during parse_request or pre_get_posts.ccess the page by adding /wp-admin/install.php to your site's domain or IP address (eg. example.com/wp-admin/install.php) and fill out the short online form.From this point on, it’s a matter of following the on-screen instructions shown in the Network Setup screen as well as continuing to follow along with the step-by-step guide in the Codex.
During this process, you’ll make the decision as to use subdomains (subdomain.mywebsite.com) or sub-directories (mywebsite.com/subdirectory) for each site created on your network. This decision cannot be reversed later!