I have a custom post type of Textorial with necessary template files:
- textorial-type.php
- single-textorial.php
- 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