Tagged: problem using SCF
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?
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
Thank you so much! All is working fine now.
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
The topic can be closed, thanks!