mercredi 28 janvier 2015

get_template_part for custom post type content not working


I have a custom post type of Textorial with necessary template files:



  1. textorial-type.php

  2. single-textorial.php

  3. content-textorial.php


The idea is to have a custom layout for the post type and use infinite-scroll to pull them in. That's why I'm using content.php. I got the infinite-scroll set up,and succesfully tested with regular posts. But when pulling custom post type in:



<div id="content">
<?php
while (have_posts()) : the_post();
get_template_part( 'content', 'textorial' );
endwhile;
?>
</div>


... nothing shows up. Also no errors. But the single-textorial.php is using the same method and its content is showing. Any ideas?





Aucun commentaire:

Enregistrer un commentaire