Black Friday sale! Get 25% off WPSP Pro! Discount automatically applied at checkout.

[Support request] meta terms – change to order by ID

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support meta terms – change to order by ID

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2409
    David
    Participant

    Hi there,
    thanks for your excellent plugin.
    Is there a way to control the output of the meta terms?
    I think at the moment perhaps the filtering is set to order by name and ASC, however I need to override this and order by ID and DESC.

    #2411
    Tom
    Keymaster

    Hi there,

    The terms are output using this WP function: https://codex.wordpress.org/Function_Reference/get_the_term_list

    I just did some digging around, and I don’t think it’s possible to order them.

    Perhaps a plugin like this would help?: https://en-ca.wordpress.org/plugins/taxonomy-terms-order/

    #2418
    David
    Participant

    Hi Tom,
    thanks for taking time to look at that for me. I might try out that plugin, though for the moment I’ve worked around by limiting to just the one term per custom post. In another area I ended up using wp_get_post_terms https://codex.wordpress.org/Function_Reference/wp_get_post_terms to orderby ‘id’ and ‘desc’. Do you think that it would be possible to change it in the plugin? I know that is generally not good practice to modify the plugin files. Just wondering though.

    thanks again for your great products. Love using GeneratePress too

    #2420
    Tom
    Keymaster

    Interesting – I’ll look into that function.

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.