• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

WP-PostRatings – Balance Theme

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › WP-PostRatings – Balance Theme

This topic is: not resolved
  • This topic has 7 replies, 2 voices, and was last updated 11 years, 3 months ago by Brad Dalton.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • June 15, 2015 at 11:51 am #156281
    Guldbrandsen
    Member

    Hi,

    I am trying to add the WP-PostRating plugin to my blog, but it does not seem to work.

    I have added the following code to the bottom of my "functions.php"

    add_action('genesis_entry_footer', 'gd_add_rating', 18);
    function gd_add_rating(){
    if ( function_exists( 'the_ratings' ) ) { the_ratings(); }
    }
    add_action('genesis_entry_content', 'gd_add_rating', 18);

    Is this correct?

    http://markguldbrandsen.com/
    June 15, 2015 at 12:24 pm #156289
    Brad Dalton
    Participant

    Remove one hook

    add_action'‘genesis_entry_content', 'gd_add_rating', 18);

    Tutorials for StudioPress Themes.

    June 15, 2015 at 12:34 pm #156291
    Guldbrandsen
    Member

    Still cant make it show.

    Now using:

    add_action('genesis_entry_footer', 'gd_add_rating', 18);
    function gd_add_rating(){
    if ( function_exists( 'the_ratings' ) ) { the_ratings(); }
    }

    June 15, 2015 at 12:36 pm #156293
    Brad Dalton
    Participant

    Link to the source of the code please.

    Also, the code you embedded is broken.


    Tutorials for StudioPress Themes.

    June 15, 2015 at 12:44 pm #156295
    Guldbrandsen
    Member

    Here is a link to the site:
    http://markguldbrandsen.com/evolvement-subcultures/

    How is it broken?

    June 15, 2015 at 12:50 pm #156297
    Brad Dalton
    Participant

    Link to the plugin docs or the page where you got the code please.

    When you paste PHP code into a web page it breaks unless you wrap it in tags.


    Tutorials for StudioPress Themes.

    June 15, 2015 at 12:55 pm #156298
    Guldbrandsen
    Member

    I got the code from here:

    Genesis Sample Theme no index.php

    Am I suppose to add more code, somewhere else, besides the code posted in the functions-php file?

    June 15, 2015 at 1:15 pm #156299
    Brad Dalton
    Participant

    This question relates to the installation of a plugin not StudioPress. Really, the plugin Developer is the best person to refer to.

    What happens if you remove the comma and the 18

     ,18

    Otherwise, change the 18 to 12.

    I don't have the plugin installed so hard to tell.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble