I Recommend This
[resolved] How to add X number of recommendations? (5 posts)

  1. Alkorr
    Posted 3 years ago #

    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!


  2. Alkorr
    Posted 3 years ago #

    Any way to do that? Thanks for your help!

  3. Harish Chouhan
    Plugin Author

    Posted 3 years ago #

    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.

  4. Alkorr
    Posted 3 years ago #

    Great, thank you! :)

  5. joshi
    Posted 2 years ago #

    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>

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


No tags yet.