Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi there @hedlou , thanks for your topic. Web Stories by default excludes stories from your WordPress site’s search results.

    Thread Starter hedlou

    (@hedlou)

    Hi there @luckynasan

    How to disable this feature?

    @hedlou This can be achieved using some PHP code. One of the engineers on our team has developed this example plugin you can install if you prefer stories to appear in the site search.

    Once you follow the link for the example plugin, click on Download ZIP.

    Navigate to WordPress Plugins > Add new > Upload plugin > Choose file > upload the file you downloaded from GitHub above > Install Now.

    Please let us know if you need additional support. Thanks.

    Thread Starter hedlou

    (@hedlou)

    I installed the plugin but it gives this error

    Howdy!
    
    Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
    
    In this case, WordPress got an error with one of your plugins? Web Stories Force Include In Search.
    Error details
    ===================
     E_ERROR On line 15 of the file /home/makhzane/public_html/wp-content/plugins/2d07e7e9de340709688bc90599ce7d7b-cc640549c7a1b76c7568435a6835f900df0fc142/web-stories-include-in-search.php Occurred. Error message: Uncaught ArgumentCountError: Too few arguments to function {closure}(), 1 passed in /home/makhzane/public_html/wp-includes/class-wp-hook.php on line 305 and exactly 2 expected in /home/makhzane/public_html/wp-content/plugins/2d07e7e9de340709688bc90599ce7d7b-cc640549c7a1b76c7568435a6835f900df0fc142/web-stories-include-in-search.php:15
    Stack trace:
    #0 /home/makhzane/public_html/wp-includes/class-wp-hook.php(305): {closure}(Array)
    #1 /home/makhzane/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters(Array, Array)
    #2 /home/makhzane/public_html/wp-includes/class-wp-post-type.php(424): apply_filters('register_post_t...', Array, 'post')
    #3 /home/makhzane/public_html/wp-includes/class-wp-post-type.php(400): WP_Post_Type->set_props(Array)
    #4 /home/makhzane/public_html/wp-includes/post.php(1520): WP_Post_Type->__construct('post', Array)
    #5 /home/makhzane/public_html/wp-includes/post.php(41): register_post_type('post', Array)
    #6 /home/makhzane/public_html/wp-includes/class-wp-hook.php(303): create_initial_po

    @hedlou Could you please delete the plugin, then re-download and install it once more?

    Thread Starter hedlou

    (@hedlou)

    @luckynasan
    I installed the plugin, my problem was fixed. Thank you for your good support

    Another question Why not put this feature in the plugin settings?

    @hedlou Great to hear! Web Stories are their own unique pages on your site and they may show up when a user searches your site or via a search engine. Since most users want their main pages and posts to rank higher than Web Stories in terms of SEO, the Web Stories plugin excludes Stories from your site’s search by default.

    Thread Starter hedlou

    (@hedlou)

    Thank you for your good support

    @hedlou You are welcome. If you are otherwise happy with the Web Stories plugin, would you consider leaving a review? It would be greatly appreciated!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘No display in search’ is closed to new replies.