• Resolved panospantou

    (@panospantou)


    Hi there, I have the premium versions of WPSSO Core and WPSSO Schema JSON-LD Markup and for some strange reason it mess with the site search results, when the plugin is active the site search results page only shows 1 search result per page instead of many results. I tried deactivating the WPSSO plugin and the site search results are working as expected, many results per page but with the plugin active the results are restricted to one per page. Does this plugin has anything to do with the WP site search function or search results page?

    thank you!

    • This topic was modified 6 years, 2 months ago by panospantou.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter panospantou

    (@panospantou)

    OK I figured out the problem. It was the setting for Type for Search Results in Schema Markup advanced settings. I changed that from webpage.search.results to webpage and the search results per page returned to normal (lots of posts per page). So, is this a bug and it needs to be fixed so I will change this setting back to webpage.search.results in the future or I can safely keep the Type for Search Results setting as webpage without this negatively affecting the schema markup ? thank you

    Plugin Author JS Morisset

    (@jsmoriss)

    The https://schema.org/SearchResultsPage markup is considered an archive type by WPSSO and the plugin requests the list of post objects from WordPress – there is no difference between the request that WPSSO makes for search results and other archive types pages (categories, tags, etc.). All these requests are working as expected in test environment and all customers (I’ve never seen a ticket about this), and no changes to this code has taken place in a long time. That doesn’t mean that the bug is not in WPSSO, but it’s unlikely.

    What is most likely is that WPSSO is triggering an existing bug in another plugin or your theme. If you don’t have a plugin manipulating / formatting search results, then it’s most likely your theme.

    I would suggest defining WP_DEBUG as true (see here https://wpsso.com/docs/plugins/wpsso/installation/troubleshooting-guide/) and activating the Query Monitor plugin as suggested. This will likely log an error message in your debug.log file when you load a search results page. If you don’t understand the error message, copy-paste it here and I (or someone else) will likely be able to offer more guidance.

    js.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin affects WP site search results’ is closed to new replies.