What is template handling for custom post type in wordpress 3.3.1
-
i try to create a new custom types (name : guide). its already done, but i cannot get appropriate look for those type. i try several view name such as : template-guide.php, archive-guide.php, guide.php. but no one is called. its always go to index.php.
and also i check https://www.chipbennett.net/wp-content/uploads/2011/10/WordPressTemplateHierarchy.2011.11.11-1024×1016.png
i try check if its is_archive, it’s return false. but when i try to execute is_home(), its return true. url query is ?post_type=guide.
thank you!
- The topic ‘What is template handling for custom post type in wordpress 3.3.1’ is closed to new replies.