Get WPFTS Pro today with 25% discount!
How to index post tags and have results
-
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);
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login