Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Supreme
  • #1241
    eny
    Member

    Hi

    I love your theme. Great work!

    how can I reset the “LOVE” count on pages or posts?

    Regards

    #1282
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    This isn’t possible through WordPress, you’d need to edit the database entry or create a new post to replace it.

    – Ed

    #116643
    nikosm
    Member
    Post count: 1

    Hi Ed,

    where could this count be managed? Would you tell us the database name?

    #116648
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    You’d have to find the post in your database and edit the value for the likes

    – Kyle

    #116660
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Do you have many posts? You can go for the solution of creating new posts.

    This is a meta field called _li_love_count that is in the postmeta table, the name of the database and the table depends on your settings in wp-config.
    http://codex.wordpress.org/Database_Description

    -Rui

    #116663
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please insert given below snippet at functions.php of child theme.

    <?php
      $allposts = get_posts( 'numberposts=-1&post_type=post&post_status=any' );
    
      foreach( $allposts as $postinfo ) {
        
        $inspiration = get_post_meta( $postinfo->ID, '_li_love_count' );
        foreach( $inspiration as $value ) {
          
            delete_post_meta( $postinfo->ID, '_li_love_count', $value );
       
      }
    ?> 

    Now load your website home page one time and remove this code.

    OR
    Please remove value for _li_love_count meta key by following this article http://www.shoutmeloud.com/how-to-delete-custom-field-value-from-wordpress-database.html.
    Thanks
    Mohammad

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register