Support » Plugin: Most And Least Read Posts Widget » New Feature

  • Resolved Eldar1988

    (@eldar1988)


    Hi,
    I would like to add a function, that when I click a button in a post, I update the meta value of custom_total_hits related to this post.
    What would be the best approach doing this?
    My front-end is AngularJS based, is it possible to do a POST to ”
    most-and-least-read-posts-widget/most_and_least_read_posts.php” and create thw new function here?

    Thanks in advance
    Luca

Viewing 1 replies (of 1 total)
  • Plugin Author whiletrue

    (@whiletrue)

    Hi Luca,
    your request is a bit too specific, you should probably create a custom solution for your site.

    If you get content using standard WP functions (the_content or get_the_content), the plugin filter should be executed automatically, updating the custom_total_hits post meta.
    If you created a custom backend to retrieve content, you may extend it with code from the most_and_least_read_posts_update function.

Viewing 1 replies (of 1 total)
  • The topic ‘New Feature’ is closed to new replies.