• 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/

  • The topic ‘Order archive by custom field’ is closed to new replies.