Support » Plugin: I Recommend This » How to add X number of recommendations?

  • Resolved Alkorr

    (@alkorr)


    I’m trying Polls plugins right now, I know your is not a Polls Plugin but I’m using it almost the same way.

    If I replace my previous ‘Favorite’ plugin with yours, I will need it to have the same number of recommendations my posts already had when I was using the other plugin.

    So my question is: how can I add a certain number of recommendations already made? I don’t want to lose all the previous recommendations…

    Thanks a lot!

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Any way to do that? Thanks for your help!

    Plugin Author Harish Chouhan

    (@hchouhan)

    Hello, this would involve directly modifying the database.

    In post meta table, the number of recommendations for a post are saved with the key _recommended

    You would have to write a MySQL query to modify this count for each post.

    Great, thank you! 🙂

    It would be also interesting for me.
    I show number of articles and comments, and also i will show the likes.

    <li><?php $nr_art = wp_count_posts('post'); $nr_art = $nr_art->publish; echo number_format($nr_art, 0, '', '.'); ?> articles</li>
    <li><?php $nr_komm  = get_comment_count(); $nr_komm  = $nr_komm['approved']; echo number_format($nr_komm, 0, '', '.'); ?> comments</li>
    <li>??? likes</li>
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to add X number of recommendations?’ is closed to new replies.