WordPress.org

Ready to get started?Download WordPress

Forums

How can I show posts based of custom field? (2 posts)

  1. dempsey
    Member
    Posted 6 years ago #

    I have a custom page on my wordpress site and each post has a custom field with a date in unix timestamp format and I want the page to only show posts when the custom field date is in the future? I have tried but with no sucess, just wondered if someone could give me some tips on how to do it.

  2. Hafiz Rahman
    Member
    Posted 6 years ago #

    Hi, you can try reading this:
    http://codex.wordpress.org/Displaying_Posts_Using_a_Custom_Select_Query

    Basically, if I'm not mistaken, this will involve creating a specific SQL query that will match the one you have.

    I hope this helps.

Topic Closed

This topic has been closed to new replies.

About this Topic