Where to place the plugin code in 2014 theme?
-
Hi,
I installed this plugin and followed the installation instructions:
Open wp-content/themes/<YOUR THEME NAME>/index.php
You may place it in archive.php, 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(); } ?>I did this for a blog using Graphene theme: no worky. There is a support thread on the Graphene theme forum about this (https://forum.graphene-theme.com/graphene-support/help-me-to-use-the-plugin-wp-postratings-in-graphene-theme), but it is closed and not resolved. I guess this plugin just doesn’t play nice with Graphene.
So I moved on to another blog of mine using twentyfourteen theme and also followed the instructions above. Still not working.
I emptied the page cache (W3 total cache) after the install and update of the index.php file, but nothing.Then I edited conten-*.php files for this theme to have it show up on every type of post (as suggested here: https://www.ads-software.com/support/topic/post-ratings-display-locations?replies=2), but still nothing.
The plugin is activated, caches are emptied, but nothing shows up.
Any help on getting this plugin to work on 2014 theme?
- The topic ‘Where to place the plugin code in 2014 theme?’ is closed to new replies.