Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1471483

    We have a multilingual multisite using Enfold child and SCF. In the blog archive of one of our sites a field group of SCF is displayed as a blog, see page: https://mc.2iq.nl/blog/

    I switched to Enfold and this field group is still displayed in my archive. When I switch to Thentytwentyfour theme, it’s not displayed anymore.

    Can you please let me now why this is happening when I use the Enfold theme?

    #1471531

    Hey ravesteynfonds,

    Thank you for the inquiry.

    Please try to add this filter in the functions.php file to exclude the acf-field-group post type from the blog grid:

    function avia_post_slide_query_mod($query, $params) {	
        foreach($query['post_type'] as $key => $value) {
            if( $value == 'acf-field-group' ) {
                unset($query['post_type'][$key]);
            }      
        }
    
        return $query;
    }
    add_filter('avia_post_slide_query', 'avia_post_slide_query_mod', 10, 2);

    Best regards,
    Ismael

    #1471642

    Thank you so much! All is working fine now.

    #1471654

    Hi,

    Thanks for the update. Please let us know if you should need any further help on the topic, or if we can close it.

    Best regards,
    Rikard

    #1471657

    The topic can be closed, thanks!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Field group of SCF showing in blog archive’ is closed to new replies.