• Resolved arickrol

    (@arickrol)


    The plugin says to # Open wp-content/themes/<YOUR THEME NAME>/index.php
    You may place it in single.php, post.php or page.php also.
    # Find:

    <?php while (have_posts()) : the_post(); ?>

    Add anywhere below it (the place you want the ratings to show):

    <?php if(function_exists('the_ratings')) { the_ratings(); } ?>

    However, I’m using Blue Memories by iqwolf and there’s no <?php while (have_posts()) : the_post(); ?> in the theme. I looked in the pages mentioned in the instructions above. But, each of those pages uses a template the_loop.php. I looked in that and couldn’t find the appropriate line either.

    Where should I put this plugin so it works?

Viewing 3 replies - 1 through 3 (of 3 total)
  • In the theme mentioned above, the wordpress loop is indeed in the template file ‘the_loop.php’.

    The loop starts on line 35 and ends on line 74.

    What plugin are you trying to install? Where do you want the ratings to show up? Can you link to the site or test site you are referring to?

    i have a similar problem on my site. I am using a K2 mod for wordpress. Out of any of the 3 pages noted to add the script, only “page.php” contains the code “<?php while (have_posts()) : the_post(); ?>” (in which u need to add other code anywhere below it for it to work)

    I went ahead and did that, and nothing comes up. Help?

    My site: (work in progress..) https://www.astralsonik.com

    Thanks!

    Thread Starter arickrol

    (@arickrol)

    Pentascape: I couldn’t find the <?php while (have_posts()) : the_post(); ?> listed in the_loop.php. According to the instructions for this plugin, WP-PostRatings, I need to find that line of code and anywhere AFTER it I need to add <?php if(function_exists(‘the_ratings’)) { the_ratings(); } ?>

    On my website, wargamingforums.com, I’d like the ratings to show up in 1 of these 2 places. Either right under the title of the post (right beneath the date). OR, I’d like it to show up after it says “Post a Comment” at the end of the post.

    I think either of those 2 places are intuitive for visitors.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘No Place to Add in Theme’ is closed to new replies.