Ratings not showing up on latest posts front page
-
Hi,
Installed Wp-PostRatings as explained on the installation tab. I want the ratings to show up on every (new) post so I added code to the following files: Archive.php, Index.php, single.php and page.php. (I seem to not have post.php in the wp-content/themes/ directory ?)
I have added the code like this at page.php:
<?php while ( have_posts() ) : the_post(); ?> <?php if(function_exists('the_ratings')) { the_ratings(); } ?> <article class="clr">
for Archive & Index.php like this:
<?php // Start counters to create rows $wpex_total_posts = $wpex_count = 0; // Loop through posts while ( have_posts() ) : the_post(); // Add row for the fit rows style blog if ( 0 == $wpex_count && wpex_blog_fit_rows() ) { ?> <?php if(function_exists('the_ratings')) { the_ratings(); } ?>
Now, my front page = latest posts.
With the code added to the .php files, NO ratings show up on the front page.
When I add the [ratings] shortcode manually to a post, the Ratings DO show up on the front page.I have <?php wp_footer(); ?> in the footer & <?php wp_head(); ?> in the header.
Is there something I am doing wrong or overlooking?
Lots of thanks for any help.
- The topic ‘Ratings not showing up on latest posts front page’ is closed to new replies.