Custom Post Types |
X

Congrats, You are Subscribed to Receive Updates.

Simple functions to Include custom post types in the search results

Simple functions to Include custom post types in the search results
Simple functions to Include custom post types in the search results. There are already plenty of articles and forum answers explain you how to include the custom post types on search results. Here I am also going to give you code, but its minimal to work. you can understand well. The following function includes the custom post types to search query. function kv_include_custom_post_type_for_search( $query ) { ...

Loop Specific Post-Type and Categories to a Specific Page

When you are creating custom post types, Surely you need to show it on a specific page and you need some short of sorting s and arrangement. Now you can set your custom template for custom post type. By the specific template, just query your desired post type and category with some additional parameters . Here is a sample code for querying of a specific ...

Creating Permalink For Custom Post types

Creating Permalink For Custom Post types
In my Previous Post, I  wrote about plugins and themes to create Custom Post Type Permalinks. Here I am going to create  Custom Post type and Create Permalink for it.  Let me creating a custom post type named “recipes” and custom taxonomy “Occasions” by the following way. add_action( 'init', 'kv_register_my_types' ); function kv_register_my_types() { register_post_type( 'recipes', array( 'labels' => array( 'name' => __( 'Recipes' ), ...

Custom Post Type and Taxonomy Permalink Creation

Custom Post Type and Taxonomy Permalink Creation
Creating Permalink for your custom post is another important work for proper link management. But in default WordPress allow you to create Permalinks for  default Post type. So we need to code it on our own to create Permalink for our custom post type. For the custom creation, You can adapt a plugin for your custom post type permalink management.    We can learn it ...

Custom Post Types And Custom Taxonomies in WordPress

Custom Post Types And Custom Taxonomies in WordPress
Custom Post Types And Custom Taxonomies in WordPress. Here I am going to explain both things, creation of  Custom Post types and  Taxanomies(Categories). With Help of few Sample codes. First we are going to create Custom Post types for Sales Items(Just for example). Create Custom Post Types:  First we go through the syntax of Custom Post creation. <?php register_post_type( $post_type, $args ); ?> Here $post_type ...

Menu

Sidebar