WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Template
This theme has no available custom post templates. (4 posts)

  1. jetlagged
    Member
    Posted 1 year ago #

    I have created a single-recipes.php file:

    <?php
    /*
    Template Name Posts: Recipes Post
    */
    ?>
    
    <?php get_header(); ?>
    
    <section id="primary">
    
    	<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    
    		<?php  get_template_part( 'content', 'recipes' ); ?>
    
    		<?php albedo_content_nav( 'nav-below' ); ?>
    
    		<?php // comments_template( '', true ); ?>
    
    	<?php endwhile; // end of the loop. ?>
    
    </section><!-- #primary -->
    
    <?php get_footer(); ?>

    [Please post code between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

    and a content-recipes.php file which is the post template and I'm still getting the "This theme has no available custom post templates." message in the Edit dropdown.
    Any idea what I'm doing wrong?
    Thanks

    http://wordpress.org/extend/plugins/custom-post-template/

  2. jetlagged
    Member
    Posted 1 year ago #

    It's ok. Figured it out.

  3. Miz.Michele
    Member
    Posted 1 year ago #

    What was it? I have the same issue

  4. Miz.Michele
    Member
    Posted 1 year ago #

    I figured out my issue too - the template name had to be exactly like the example in the post above.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags