Home Forums Newsletter Plugin Support How to order custom post types

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19976
    carlosvernalis
    Participant

    Hello and congrats for your plugin!!!

    I want to order custom post types in the newsletter by ASC or DESC but i cant see where i cand do that, i have set the custom post filter like this $filters['Events'] = array('post', 'topic').

    please help 😉

    #19988
    Stefano
    Keymaster

    If you are using the get_posts, you can use the parameter “order” with values “ASC” or “DESC”.

    Stefano.

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