Hello
I’ve been having this problem with my search results page, for some reason when I search something the results appears in a page with the default template, and for other words the results appear in the “one column” template.
We have this “special” posts, and we wanted them to have a “one column” template so we added this to the child theme functions
function es_recomendado(){
global $wp_query;
$postid = $wp_query->post->ID;
if ( '1' == get_post_meta($postid, 'location_special', true) )
return true;
return false;
}
and then in the -function graphene_column_mode(){ –
we added this line
elseif (es_recomendado() )
return 'one-column';
Now, this is also affecting the search results for some reason.
Is there something I can do to fix this and set the results page to a template?
Thanks so much