WordPress.org

Support

Support » How-To and Troubleshooting » post order by custom field in wp_post

post order by custom field in wp_post

  • I’d added a new field in wp_posts table let say ‘abc’ now I want list the post according to ‘abc’ can anybody help me with that.

    Another thing I want to do this by plugin, i’d tried query_posts($query_string .’&orderby=abc&order=asc&posts_per_page=-1′);
    which doesnt seem to work for custom fields. I think what I want to do can be done through get_post() but I’m clueless how.

    All help will be highly appreciated.

    Thanks in advance,
    Adi

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘post order by custom field in wp_post’ is closed to new replies.