• Resolved uxeafelio

    (@uxeafelio)


    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?

    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);
    
Viewing 1 replies (of 1 total)
  • Plugin Author Epsiloncool

    (@epsiloncool)

    Hi @uxeafelio

    Please check if you’re using implode() function correctly.

    Remember, you always need to check the result of wpfts_index_post in the Sandbox tester to see if it makes correct $index values.

    Hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Cannot retrieve post’ is closed to new replies.