Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1415355

    Hi,

    I’m running a theater site on WordPress and the Enfold theme, and I can’t get the articles to display in a chosen order without using the trick of changing the publication date.

    I’d like to use the dates stored in an ACF field to generate the order of these events.

    Thank you,

    Regards
    PMP

    #1415648

    Hey Pierre-Marie,
    Thank you for your patience, but unfortunately we are not experienced with ACF.
    I found this thread at stackexchange.com that may help you, but sense we don’t work with ACF I don’t have a way to test it. I recommend asking ACF support to assist you or hire a freelancer to assist.
    We are limited in supporting third-party plugins, thank you for your understanding.

    Best regards,
    Mike

    #1415662

    Ok you don’t use ACF but you know what is the function for sorting the post.
    For exemple this works for the grid list:

    `// hook for layout grid only
    add_filter(‘avia_post_slide_query’, ‘avia_modify_post_grid_query_desc’);

    function avia_modify_post_grid_query_desc( $query ) {
    $query[‘orderby’] = ‘meta_value’; // to order on meta values
    $query[‘meta_key’] = ‘event_date’; // id of the custom date field
    $query[‘order’] = ‘ASC’;
    return $query;
    }

    So we just have to find the query for the avia post nav function.

    #1415667

    Hi,
    The post nav doesn’t have a query, WordPress sets the order for the loop, try using the Post Types Order plugin it was recommend in this article as best for Custom Post Types.

    Best regards,
    Mike

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