can you help me, how can i sort posts by some custom field, in wordpress 3?
do i need to create some custom fields, and add new field in db, or…?
tnx in adv!
can you help me, how can i sort posts by some custom field, in wordpress 3?
do i need to create some custom fields, and add new field in db, or…?
tnx in adv!
You must be logged in to post a comment.
You can use
query_posts
to sort posts by custom fields (also referred to as meta key value pairs). Assuming you just want to add the sorting to the current view’s query, you can do something like this:No you do not have to create custom fields.
You can use a plug-in like this: http://wordpress.org/extend/plugins/wp-post-sorting/
or do it by editing your category file: http://codex.wordpress.org/Alphabetizing_Posts