-
Search Results
-
Hi,
I’m using “Search & Filter Pro” on my website Home Page (with a shortcode) and on my search.php template. And I’m very happy with it !
I noticed a little compatibility problem with SEO plugins like “WordPress SEO” from Yoast.
“Wordppress SEO” from Yoast automatically adds canonical tags on paginated pages like this :
<link rel="prev" href="http://mydomain.com/page/1" /> <link rel="next" href="http://mydomain.com/page/3" />or that
<link rel="prev" href="http://mydomain.com/search/page/1" /> <link rel="next" href="http://mydomain.com/search/page/3" />But these URL send 404 errors because “Search & Filter Pro” doesn’t use the default WordPress pagination.
I tried unsuccessfully to use the “WordPress SEO” filters (
wpseo_prev_rel_link&wpseo_next_rel_link) to customize these canonical URLs to look like this:<link rel="prev" href="http://mydomain.com/?sf_paged=1" /> <link rel="next" href="http://mydomain.com/?sf_paged=3" />and
<link rel="prev" href="http://mydomain.com/search/?sf_paged=1" /> <link rel="next" href="http://mydomain.com/search/?sf_paged=3" />For now, I’m using a function to prevent addition of prev/next rel link by WordPress SEO (https://gist.github.com/tacoverdo/7102453) but it would be nice to work it out ! 😉
Do you have a fix for that ?
Thank you.
Hi There,
Thanks for your great plugin, it has really saved me alot of hassle and well with the money. But i am getting this error, it seems to be happening when i have SEO Yoast happening.
http://testing.smart-learning.co.uk/science/
It is not happening on my local site.
Hi,
I loaded the new version yesterday but have had to revert to 1.4.3 because some of my custom functions are not working correctly with 2.0.1
I am currently using this code in 1.4.3 to recall the form ID after my ajax page refresh…
if (class_exists('Search_Filter')){ global $sf_form_data; wp_localize_script('djax_init', 'SF_LDATA', array( 'ajax_url' => admin_url( 'admin-ajax.php' ), 'home_url' => (home_url('/')), 'sfid' => $sf_form_data->get_active_form_id() )); }BUT in 2.0.1 it does not work and I can’t figure out what I need to change apart from the global var ($searchandfilter). I get an error regarding the get_active_form_id() so obviously something has changed in the new version.
Also the code which names the search page is incorrect too….
/***SEARCH & FILTER PRO FUNCTIONS***/ if (class_exists('Search_Filter')){ //wp_enqueue_script( 'search-filter-plugin-build' ); //wp_enqueue_script( 'search-filter-chosen-script' ); // Search Page Title - Yoast SEO friendly :-) function search_meta_title($data){ global $sf_form_data; if ( $sf_form_data->is_valid_form() ) { return 'Search Results'; } else { return $data; } } add_filter('wpseo_title','search_meta_title'); add_filter('wp_title','search_meta_title');Can anyone help me update my functions?
Hi! I go the paid version. The plugin is really great.
I get undesirable titles and descriptions for the filter results. I’ve set “As an Archive Page” to display the results.
I need a snippet to insert on the functions.php file. Yoast by SEO doesn’t seem to display an option to modify the title in the “archives” section. I only see “Author Archives” and “Date Archives”
The reason I need an snippet is because I’m building a website in headway themes. They don’t use files for the templates. Everything under the Headway system in the database.
I hope you can help. Thank you very much.
Hello.
The title on my search results page is displaying as Blog (the title tag, not the h1 page title). I am using WordPress SEO by Yoast which rewrites Titles & Meta. I assume it doesn’t recognize the slug (product-search) and is assigning the generic Blog title to this archive.
Do you know any way to force a different title tag on the search results page? Or is this a problem for WordPress SEO?
Thanks for your help,
Celeste