So, I was having problems with seeing headers/footers/global blocks.
X Pro 4.011 has conflicts with the following pre_get_posts and query set as shown below:
add_filter('pre_get_posts', 'searchfilter');
function searchfilter($query)
{
if ($query->is_search() && !is_admin()) {
$query->set('post_type', array('novel'));
}
return $query;
}
I changed it to:
add_filter('pre_get_posts', 'searchfilter');
function searchfilter($query)
{
if ($query->is_search() && !is_admin() && is_search()) {
$query->set('post_type', array('novel'));
}
return $query;
}
Fixed the issue. But this shows that there is a conflict with $query->set. It’s quite likely that however Pro is built, anything that sets a query in their project will override the X Pro if it’s not limited outside the builder.