WordPress.org

Forums

I Recommend This
[resolved] Allowing post voting on an overview page (11 posts)

  1. dtangen75
    Member
    Posted 1 year ago #

    Hi,

    I'm testing out using your plugin for allowing readers to vote on posts. I've got it working fine on the individual posts page, but I also want readers to be able to vote on each post from an overview page (such as a category page or a custom page displaying latest posts based on a tag).

    Any ideas on how I can best do this?

    http://wordpress.org/plugins/i-recommend-this/

  2. Harish Chouhan
    Member
    Plugin Author

    Posted 1 year ago #

    @dtangen75,
    You can do that by editing your theme files directly and adding below code within the loop.

    <?php if( function_exists('dot_irecommendthis') ) dot_irecommendthis(); ?>

  3. pattyland
    Member
    Posted 9 months ago #

    Can't you make this an option for the plugin? "Show on front page too"

    Would me much easier for people than creating a child theme and editing php files!

  4. Harish Chouhan
    Member
    Plugin Author

    Posted 9 months ago #

    @pattyland I could but am holding of until lot of users request this feature. Currently the setting screen is filled with too much options and the plugin is going in the opposite direction of what I wanted it to be.

    The plugin supports only most use cases and for any extra customization code can be added to the theme.

  5. pattyland
    Member
    Posted 8 months ago #

    Hm, I wonder that this feature is not requested my many users. Facebook Likes, Flattr button etc are always displayed on the homepage too.

    My site is already using a child theme of twentythirteen, and I dont't want to modify it to stay upgradable! I could write a seconds plugin just to hook your plugin there, but I don't know which solution is more worse :(

  6. Harish Chouhan
    Member
    Plugin Author

    Posted 8 months ago #

    Hi @pattyland,

    While I won't be able to add that option yet, if you could manage to and share the code, I can release a new version of the plugin with your addition.

  7. pattyland
    Member
    Posted 8 months ago #

    Hi Harish, here are my changes: http://www.diffnow.com/?report=3rt58

    I didn't add a new option on the settings page, as I think if a user want's the button below his posts he want's it everywhere below it posts. Feel free to add one though!

    PS: The Link is only available for 1 month!

  8. Harish Chouhan
    Member
    Plugin Author

    Posted 8 months ago #

    @pattyland Thanks for sharing this. I'm glad you got it to work.

  9. Harish Chouhan
    Member
    Plugin Author

    Posted 8 months ago #

    @pattyland, does that piece of code add the like button at the end of any custom post type as well?

  10. pattyland
    Member
    Posted 8 months ago #

    My costumer is using twentythirteen and have a few posts of the type "Quote", and it seems working great.

    Just a little change: In line 398 of the new file it should be is_home() instead of is_front_page() because the page with the blog posts can differ from the front page!

    New Diff: http://www.diffnow.com/?report=0yuso

  11. Harish Chouhan
    Member
    Plugin Author

    Posted 8 months ago #

    Thanks @pattyland,

    I'll copy and paste that code in the FAQ so users who need it can add it to their functions.php

    90% users so far and mostly those using it in their premium themes use it only for certain post type. Adding any code is great, but than removing it in future is bit difficult.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • I Recommend This
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic