Web Prepration

Web Concept Tutorials

wordpress custom taxonomy

Wordpress

In this post, I am going to explain how to Display Related Posts on post single page in WordPress. In WordPress you can display related posts using plugin because lots of plugin available of WordPress. But in this post we can show you how to display related posts without any plugin.   There are two methods of display  related post on single post page and you can choose whichever method you prefer. One way is doing it with a plugin and then there is another method that is doing it without any plugin. Display Related Posts in WordPress without any Plugin Please copy the below code and paste the following code in single.php where you want to display related post.

I have used WP_query  function  for display related posts on single page of post. We hope that this article is helpful for WordPress beginners. You may also want to

read more >>
Others, Wordpress

In this post, I am going to explain how to create custom post type with category/taxonomy  in WordPress without any plugin. There are lots of plugin available for custom post type and taxonomy but if you want to create without any  plugin,then needs to follow given steps. You can create custom post in two ways first use  below code in your active theme functions.php file or create new own plugin and paste below code in your plugin file. Example:-

Now save file and check in admin new post type book is registered. you can create lots of custom post according to need using register_post_type(‘post_type_name’,$args); function. This function takes two parameters first post type name and second array type. Now for category/taxonomy WordPress provided predefined function register_taxonomy( ‘book-category’, array( ‘book’ ), $args );  This function adds or overwrites a taxonomy. It takes in a name, an object name that it affects, and

read more >>