Get WPFTS Pro today with 25% discount!

How to index post tags and have results

Frequently Asked Questions
1 1 584 1

  • Hi,
    I’ve create some indexes with custom fields but for one of the index I add the tags attached to the posts. Unfortunatly when I do a search I ca’t retrive the post with the tag. Any Ideas or help will be apprecied?

    in my functions :

    $tags = get_the_terms($post->ID, 'post_tag');
        $tagName = array();
        if ($tags) {
          foreach ($tags as $tag) {
            $tagName[] = $tag->name;
          }
        }
     $index['post_tag'] = implode($tagName);
    

Suggested Topics

  • Able to delete from index

    Frequently Asked Questions
    10
    0 Votes
    10 Posts
    440 Views
    A
    @EpsilonAdmin I don't see the error anymore. Give me a day to troubleshoot further
  • Filter and sort result list

    Frequently Asked Questions
    4
    0 Votes
    4 Posts
    921 Views
    EpsilonAdminE
    Hi @ilocimwca It's simple to do with this addon https://fulltextsearch.org/wpfts-addon-files-only-1.0.1.zip It contains some code to limit post_type to 'attachment' only: add_action('pre_get_posts', function(&$wpq) { if ($wpq->is_search && $wpq->is_main_query()) { $wpq->set('post_type', array('attachment')); $wpq->set('post_status', array('inherit')); } }); Pretty simple. If you want to set up your own post_types, just modify this code. You can read about full WP_Query() parameters at the Wordpress official documentation.
  • Can I exclude files from being indexed?

    Frequently Asked Questions
    1
    0 Votes
    1 Posts
    811 Views
    No one has replied
  • 0 Votes
    2 Posts
    1k Views
    EpsilonAdminE
    Sorry, I just detected your message. Please could you follow this small guide? If it does not help, write to me here again. I will need to know the theme you're using and, possibly, the URL of your website to make some checks.
  • 0 Votes
    4 Posts
    1k Views
    EpsilonAdminE
    Correct, you can justify the styling of the Smart Excerpt part using CSS block in the WPFTS Pro Settings / Search & Output. Your webmaster can use it. Other parts of the search results page are not accessible for the plugin.

Be the first to read the news!

We are always improving our products, adding new functions and fixes. Subscribe now to be the first to get the updates and stay informed about our sales! We are not spammy. Seriously.

Join Us Now!

We are a professional IT-team. Many of us have been working in a Web IT field for more than 10 years. Our advanced experience of software development has been employed in the creation of the WordPress FullText Search plugin. All solutions implemented into the plugin have been used for 5 or more years in over 60 different web-projects.

We are looking forward to your comments, requests and suggestions in relation to the current plugin and future updates.

ewm-logo-450

The forum powered by NodeBB | Contributors