Fireworks vs Photoshop – Where to use what?
It’s over the years that we heard about the Adobe Photoshop. It was a new software that helped all types of creatives designs. Yet, as it customary with technological progress, there is always i
Read More
Post Type and Custom Post type are used to post Content in Wordpress. its knows as Content Type. There are some post type already exit in wordpress attachments, pages, revisions and navigation menus. All of the post types are stored in the posts database table and differentiated by a column named post_type. Taxonomy are the know as categoty used to group post and custom post types togeather. Diffrent Wordpress Taxonomy are categoty and tags. In Wordpress you can also create custom tags and custom categoty to group the content based on caregoty and tags.
How to Know When Do You Need a Custom Post Type or Taxonomy?
Create Custom post type
Below are the example to create custom post type and custom taxonomy. We have created custom post type portfolio
add_action('init', 'analytics_post_type_register');
function analytics_post_type_register() {
register_post_type(
'portfolio',
array(
'label' => 'Portfolio',
'singular_label' => 'Portfolio',
'public' => true,
'show_ui' => true,
// 'menu_icon' => get_stylesheet_diractory_uri() . '/images/homeoptions-icon.png',
'capability_type' => 'post',
'taxonomies' => array( 'category' ),
'hierarchical' => false,
'rewrite' => true,
'show_in_nav_menus' => false,
'exclude_from_search' => true,
'supports' => array('title', 'editor', 'author','revisions','thumbnail',)
)
);
}
Post your requirment for Wordpress Web Development and you can also hire a wordpress developer on hourly bases
It’s over the years that we heard about the Adobe Photoshop. It was a new software that helped all types of creatives designs. Yet, as it customary with technological progress, there is always i
Read MoreChoosing the Best PHP developer or web design company for building your PHP Website for your startup or an established business. In this article, we are going to discuss the key factors to consider wh
Read MoreIn this post, I will be able to allow you to skills to handle the pictures encoded with Base64 and convert the pictures to a folder. While working with API for app, you'll notice that they'
Read More