Tagged: , , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1484181

    Is there an easy way to adjust the blog post element where when using the grid display option, we can choose another field? I am using it to display a GeoDirectory Places cpt.

    Let me know if you would like admin access to see what is available and how things interact.

    #1484201

    Hey Jason,

    Thank you for the inquiry.

    Which field are you trying to select? This is not possible at the moment, but you can try modifying the blog posts query using the avia_post_slide_query filter.

    Example:

    add_filter( 'avia_post_slide_query', 'avf_custom_avia_post_slide_query', 10, 2 );
    function avf_custom_avia_post_slide_query( $query, $params ) {
        $query['meta_query'] = [
            [
                'key' => 'your_acf_field_key',  
                'value' => 'desired_value',     
                'compare' => '=',            
            ]
        ];
    
        $query['orderby'] = 'date';
        $query['order'] = 'ASC';
    
        return $query;
    }

    Best regards,
    Ismael

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