Creating WordPress Custom Post Type | Basic

  1. Registering post type in function.php
  2. Create custom related pages.
  3. Settings->Permalinks [Update]

Done!

Let's start...

  1. Modifie, functions.php (in child theme) to register Custom Post Type
  2. Create custom template files (copy and rename archive.php and single.php as below)
    • single posts of a custom post type will use single-mycompany_product.php
    • and their archives will use archive-mycompany_product.php
  3.  Navigate in WP-Admin menu to:  Settings->Permalinks. Update page, this will rewrite .htaccess

 

For more check Creating WordPress Custom Post Type | Advanced

Published on: 2015/05/15

Leave a Reply

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram