WordPress.org

Ready to get started?Download WordPress

Forums

Types - Custom Fields and Custom Post Types Management
Order archive by custom field (1 post)

  1. julinho.sf
    Member
    Posted 11 months ago #

    Hi!,

    I have a custom type called "trabajadores" with a custom field inside called "orden". This is a numeric field where I put the order I want for the post (first one, second one, etc...).

    In archive-trabajadores.php I have the following code

    query_posts('meta_key=orden&orderby=meta_value');
    while (have_posts()) : the_post();

    But it doesn't work (I've tried also with wpcf-orden).

    Anybody could help me to know where is the mistake?

    Thanks a lot!

    http://wordpress.org/plugins/types/

Reply

You must log in to post.

About this Plugin

About this Topic