Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter hany88

    (@hany88)

    Yes it is, but I need the_content of the post, too. So in the end its a normal loop for posts but ordered by the like count.

    Forum: Hacks
    In reply to: meta_key from mysql database
    Thread Starter hany88

    (@hany88)

    Thanks for the answer.
    I thought if it’s possible to show a most-liked-post list with [most_liked_posts limit=”X” time=”Y”] it should also be possible to show the corresponding post. Isn’t there a function I can use in my custom_page.php ?

    Forum: Hacks
    In reply to: meta_key from mysql database
    Thread Starter hany88

    (@hany88)

    maybe I’m mixing something up here.

    This is what I want:

    Under the table “wti_like_post” I have a column “value” and “post_id” which stores int values (like count) for a specific post (post_id). I don’t have custom fields.

    mysql> select id,post_id,value from wp_wti_like_post;
    +----+---------+-------+
    | id | post_id | value |
    +----+---------+-------+
    |  1 |      26 |     1 |
    |  2 |      24 |     3 |
    |  3 |      26 |     5 |
    |  4 |      22 |     9 |
    +----+---------+-------+

    I want to make a new page where the posts are ordered by the “value”. How can I dot his?

Viewing 3 replies - 1 through 3 (of 3 total)