This topic has 5 replies, 3 voices, and was last updated 10 years by DragonflyCA.

  • Author
  • #16076
     i-management
    Participant

    How can add like button and counter in to custom post type? Now there are only in blog post.

    #16312
     Abe
    Keymaster

    Right now you need to change this file wp-content\themes\kleo\lib\item-likes.php on line 29 when it checks if the type is post. We will try to make it more customizable in the next update

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #16388
     i-management
    Participant

    Thks! it’s working right!

    #21596
     DragonflyCA
    Participant

    Novice here… would you mind sharing the code?

    #21615
     Abe
    Keymaster

    You have a post types array which you can adjust and add other post types there by following the current definition. For template changes and other things that require programming knowledge it is advised to hire a developer

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #21779
     DragonflyCA
    Participant

    OK – got it!

    It was line 28 on my install (not 29)

    $post_types = array( ‘post’, ‘attachment’, ‘custom_post_type’ );

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

The topic ‘Like Button Custom Post Type’ is closed to new replies.

Log in with your credentials

Forgot your details?