WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Alkorr
    Member
    Posted 10 months 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!

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

  2. Alkorr
    Member
    Posted 10 months ago #

    Any way to do that? Thanks for your help!

  3. Harish Chouhan
    Member
    Plugin Author

    Posted 9 months 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
    Member
    Posted 9 months ago #

    Great, thank you! :)

  5. joshi
    Member
    Posted 2 months 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>

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.