Note that there are some explanatory texts on larger screens.

plurals
  1. POWordPress Custom Post template won't load
    primarykey
    data
    text
    <p>I created a custom post, and made a template file named single-postname.php</p> <p>I can't get the template file to load, before I would just get re-directed back to the homepage, but after flushing the .htaccess file I just get a blank page.</p> <p>I tried removing and adding the post again, changed the permalinks a couple times, and changed the theme, nothing seems to work. Is there anything else I can do to try forcing WordPress to look for the file again?</p> <p>The register_post_type</p> <pre><code>$labels = array( 'name' =&gt; _x( 'Conversations', 'conversation' ), 'singular_name' =&gt; _x( 'Conversation', 'conversation' ), 'add_new' =&gt; _x( 'Add New', 'conversation' ), 'add_new_item' =&gt; _x( 'Add New Conversation', 'conversation' ), 'edit_item' =&gt; _x( 'Edit Conversation', 'conversation' ), 'new_item' =&gt; _x( 'New Conversation', 'conversation' ), 'view_item' =&gt; _x( 'View Conversation', 'conversation' ), 'search_items' =&gt; _x( 'Search Conversations', 'conversation' ), 'not_found' =&gt; _x( 'No conversations found', 'conversation' ), 'not_found_in_trash' =&gt; _x( 'No conversations found in Trash', 'conversation' ), 'parent_item_colon' =&gt; _x( 'Parent Conversation:', 'conversation' ), 'menu_name' =&gt; _x( 'Conversations', 'conversation' ), ); $args = array( 'labels' =&gt; $labels, 'hierarchical' =&gt; false, 'description' =&gt; 'conversation between users on the site', 'supports' =&gt; array( 'title', 'excerpt', 'author', 'comments', 'custom-fields' ), 'public' =&gt; true, 'show_ui' =&gt; true, 'show_in_menu' =&gt; true, 'menu_position' =&gt; 20, //'menu_icon' =&gt; 'http://findicons.com/files/icons/2229/social_media_mini/24/google_talk.png', 'show_in_nav_menus' =&gt; true, 'publicly_queryable' =&gt; true, 'exclude_from_search' =&gt; false, 'has_archive' =&gt; true, 'query_var' =&gt; true, 'can_export' =&gt; true, 'rewrite' =&gt; true, 'capability_type' =&gt; 'post' ); register_post_type( 'conversation', $args ); </code></pre> <p>Filename = single-conversation.php</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload