Creating WordPress Custom Post Type | Advanced

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


This post improved version of previous Creating WordPress Custom Post Type | Basic

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
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