So I have copied the actual loop.php page and used it for one of my custom templates but for some reason a simple
<?php while ( have_posts() ) : the_post(); ?>won’t return any posts for the customized template even thou it works fine in the main one, if I put in certain conditions such as
<?php query_posts( 'meta_key=price&orderby=meta_value&order=ASC' ); while ( have_posts() ) : the_post(); ?>then the posts start to appear, otherwise they won’t. Also the CSS gets buggy for the customized version, even thou the codes are exactly the same. I am quiet lost as to what could be causing this.
- The topic ‘Custom PHP index page won't work as expected’ is closed to new replies.