CSS not loading for queries
-
Hello!
First of all, thank you for this great and useful plugin. I wanted to point your attention to a trouble spot I came across in theme development.
I have a custom homepage with multiple queries for various custom post types. Here’s my code snippet:
<?php $args = array( 'posts_per_page' => 1, 'post_type' => 'review', 'order_by' => 'post_date' ); $latest_review = get_posts( $args ); foreach ( $latest_review as $post ) : setup_postdata( $post ); ?>
I also tried a more generic query to test it:
<?php query_posts('cat=144&showposts=1'); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
Within these queries the plugin pulls the data for each post, but the data shows up in plaintext instead of utilizing the CSS. I even inspected the elements themselves and the CSS simply isn’t loading at all. The queries work on the posts themselves as intended, so I don’t think it’s a theme issue on my end, unless I’m doing something terribly wrong on the home.php itself.
I’ve taken the plugin off the homepage for now but I’d really like my readers to be able to share from the homepage if possible. Thanks again for the plugin and I appreciate any guidance you or the community can offer.
- The topic ‘CSS not loading for queries’ is closed to new replies.