• Dear WP community, this is my first post here so go easy on me ??

    I started developing a page with a friend and we don’t know how to filter posts like a lot of 9gag-like pages filter them, by their likes..

    we are planning to have normal 9gag like posts filtered in hot and fresh and 2 more independent categories and we are stuck with this hot and fresh thingie..

    is there any php code that will send posts from https://donkeypoop.com/fresh to home page https://donkeypoop.com when the post gets more than lets say 50 likes(points)?

    or should i make a new page dokeypoop.com/hot, and then what? ??

    thank you in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • There are nothing actually like ‘hot’ and ‘fresh’.
    But it can be define with something like
    hot = got ‘n’ amount of view/comment in last X days
    fresh = x ammount of recent posts.
    you need those 2 widget in sidebar right? or somewhere in homepage?
    For sidebar, Fresh can be easily added with Recent Posts Widget Extended
    And this ‘hot’ thing is little difficult. you have to filter posts by views. but WP doesnt have builtt in ‘view’ counter. you can use Jetpace for that or some other view counting widget and then you have to mess with php a little to filter posts.
    But if you like to do it manually it will be easier and can be done with same widget. Simply make a category/tag named ‘hot’ and add a RPWE widget in widget area and check that tag/category‘ from Limit posts by tags/categories.

    Thread Starter filip4428

    (@filip4428)

    im using 9gag clone theme and it has “points” on every post, you can upvote a post and downvote them, and all i want is that when it has let’s say 50 points it automaticly transfers from donkeypoop.com/fresh to donkeypoop.com, i didnt even yet solved how to put new posts in donkeypoop.com/fresh but i think that won’t present a problem..

    Thread Starter filip4428

    (@filip4428)

    so in other words i think i need php function that does the following:

    looks for the post in donkeypoop.com/fresh (because all the new pictures wind up there) and if the post has more than lets say 50 points (likes)
    the function transfers the post to donkeypoop.com/hot or just donkeypoop.com..

    can anybody plz help?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘"hot" and "fresh" filtration of posts’ is closed to new replies.