WordPress.org

Ready to get started?Download WordPress

Forums

Thumbs Rating
[resolved] How to use it on certain pages? (4 posts)

  1. Kalyan Brata Das
    Member
    Posted 7 months ago #

    nice plugin. just confused, as how to use on a certain pages only? I need to use it on a page and nowhere else. Possible? what's the shortcode to place on that page?

    thanks in advance

    http://wordpress.org/plugins/thumbs-rating/

  2. Ricard Torres
    Member
    Plugin Author

    Posted 7 months ago #

    Hi Kalyan,

    You'll have to use Conditional Tags in your functions.php file

    http://codex.wordpress.org/Conditional_Tags

    If you check the Installation tab: http://wordpress.org/plugins/thumbs-rating/installation/

    You should use something like:

    function thumbs_rating_print($content)
    {
        if ( is_page(123) ){
           return $content.thumbs_rating_getlink();
        }else{
            return $content;
        }
    }
    add_filter('the_content', 'thumbs_rating_print');

    Cheers

  3. Kalyan Brata Das
    Member
    Posted 7 months ago #

    oh great.. thanks Ricard :)

  4. Ricard Torres
    Member
    Plugin Author

    Posted 7 months ago #

    You're welcome!

    If you like the plugin please leave a review: http://wordpress.org/support/view/plugin-reviews/thumbs-rating

    :)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.