mgwinstanley
Forum Replies Created
-
Ok, I was able to fix this. Please note, there may be an issue with this plugin and Artisteer created themes. There is a fix floating around online about how to prevent Widget_Logic from serving up hidden pages, such as squeeze pages or hidden download pages. I am not sure of the original source, but the article I was given is here http://www.bourncreative.com/how-to-exclude-pages-from-wordpress-search
This is the script being recommended:
function SearchFilter($query) {
if ($query->is_search) {
$query->set(‘post_type’,’post’);
}
return $query;
}
add_filter(‘pre_get_posts’,’SearchFilter’);Please make a BIG note. Adding this script to your function.php theme page may take out the site AND lock out your WP Dashboard access. It will return an error 500 page Website is down for maintenance or Website has programming error or it give you a parse error on the last line of your function.php page. You will need to actually go in and delete the lines off the function.php page through your server’s file manager.
Again, this may not be true on all themes, but it appears to be an issue with Artisteer themes.
My recommendation is to not include the fix until you have tested things in a sandbox environment to make sure that it is compatible with your particular theme and server set up.