• Resolved IngeB1983

    (@ingeb1983)


    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.

    https://www.ads-software.com/plugins/wp-postratings/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Lester Chan

    (@gamerz)

    Hi,

    Most likely you are placing in the wrong place. Please contact the theme author, it is really subjective from theme to theme. The instructions are for default theme.

    Thread Starter IngeB1983

    (@ingeb1983)

    Hi Lester,

    Thank you for your quick response. I’ll take it up with theme support.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Ratings not showing up on latest posts front page’ is closed to new replies.