Forums
(@jeanmichellsouber)
11 years, 1 month ago
Hours spent for something so little…
Folks, check if the page.php of your theme has the following code…
<?php while(have_posts()):the_post()?> <?php the_content(); ?> <?php endwhile; ?>
If not, paste it, then ??
All the other pages will work.
I’m facing this EXACT problem! What’s going on??? Did you find a solution?
11 years, 9 months ago
Or… you can just set both types as an array to show pages and posts with the category X…
Like this:
<?php query_posts(array(‘post_type’=> array(‘post’, ‘page’), ‘category_name’ => ‘X’, ‘showposts’ => ‘-1’)); ?>
Friend, you just have to insert “post_type=page” to query pages instead posts.