Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey, thanks for reaching out!

    Hmm, that does sound a bit weird, yes, but it depends on how are those shortcodes inserted?— as plain text in the body of your blog posts? What’s that plugin that you’re using called? Any chance you could send us the link to the blog in question, so we could have a closer look?

    Let us know, we’re eager to help! Take care & have a nice day!

    Best,
    Silvo

    Thread Starter michaeljmac

    (@michaeljmac)

    Thanks for the response. Unfortunately, the blog is not available for outside viewing yet. I am using the WP FAQs plugin. The posts are simply the shortcode in plain text. We do sometimes add a hidden div as well with additional terms, and the search finds those without a problem (as well as whatever is in the title); however, whatever is in the expanded shortcode itself is not found.

    Thanks again.

    Hey, thanks for getting back to me with such detailed response, much appreciated!

    Well, for now, I’m afraid to say we cannot help you out very much, since we couldn’t replicate the problem fully on our side. Just to be sure, is this the plugin you are using? — https://www.ads-software.com/plugins/wp-faq-by-wpdonehere/

    Also — we weren’t able to find any expandable or retractable options in that plugin either, which really got us curious on how you achieved that, so any additional information on that would be greatly appreciated.

    And if the site goes live by any chance, do let us know, since we’ll be more than glad to take a closer look. Either way, let us know what’s up!

    Take care & I’m looking forward to your reply! Have a nice weekend!

    Best,
    Silvo

    Hey,

    we figured out how to use WP-FAQ plugin, so we’ll test a bit more to figure out why our plugin doesn’t pick up FAQ entries.

    Stay tuned.

    Best,
    Mateja

    Hey @ michaeljmac, sorry it took us so long, but we have some good news and some bad news.

    Good news is that we figured out why search everything doesn’t work with WP-FAQ and the bad news is that this is a bug in WP-FAQ plugin. I already opened a topic at their support forum, so it’s up to them now when they’ll have the time to fix this.
    However… until they do this, you can add a line of code in classes/class-faq.php file of their plugin that will enable search.

    You have to add 'exclude_from_search' => false, to arguments starting in line 33 of class-faq.php file. You should end up with something like this:

    $args = array(
                'labels' => $labels,
                'public' => false,
                'publicly_queryable' => true,
    	    'exclude_from_search' => false,
                'show_ui' => true,
                'show_in_menu' => true,
                'query_var' => true,
                'rewrite' => false,
                'capability_type' => 'post',
                'has_archive' => true,
                'hierarchical' => false,
                'menu_position' => null,
                'menu_icon' => PLUGINURL . 'images/icon-faq.png',
                'supports' => array('title', 'editor', 'faq_groups'),
            );
            register_post_type('faq', $args);

    I’ll mark this topic as resolved now, but if you need any further assistance – we’re still here ??

    Best,
    Mateja

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Search results of shortcode’ is closed to new replies.