We're merging with GenerateBlocks! Learn more here.

[Resolved] Order posts by specific custom field (date)

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Order posts by specific custom field (date)

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #21673
    Chantal
    Participant

    Hi there,

    I have an events site which lists all the shows coming out over the next year. I would like to display these shows on the page in chronological order of the opening date.

    I am using Toolset Custom Fields, and the custom field name that I want to order it by is as follows: wpcf-category-opening

    Is it possible to have a function that I can input in code snippet to do this please?

    I’ve studied this but have no idea how to adapt it to my custom field: https://wpshowposts.com/support/topic/sort-by-event-date/

    Thank you in advance. 🙂

    #21685
    elvin
    Moderator

    Hi,

    You can use filter using custom fields on shortcode.

    Try Tom’s answer here.
    https://wpshowposts.com/support/topic/sort-by-custom-field-value/#post-7803

    #21723
    Chantal
    Participant

    Thank you! I got it to work!

    #21765
    elvin
    Moderator

    Awesome. No problem. 🙂

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