searching user metadata
-
I’m relatively new to WP and have spent the last several hours searching the docs and haven’t found an answer, so if the answer is in the docs somewhere, please just refer me to the proper place.
I have created a page template that populates pages with information from the page author’s user metadata. However, the default search mechanism isn’t finding any of these pages when a search is performed using terms contain in a user’s metadata. How can I get the search results to include these pages whose content is dynamically generated from user metadata?
To be more concrete, a simplified version of the page template looks like:
<div class='username'><?php the_author_meta ('display_name')</div> <div class='bio'><?php the_author_meta ('description')</div>
And suppose there is a user ‘jdoe’ who is the author of a page and has the term ‘photography’ is the ‘Biographical Info’ (description) field in his user profile.
Searching for ‘photography’ currently finds all posts and static pages that contain that term, but does NOT find the page owned by user jdoe, whose content is dynamically generated from the ‘description’ field in jdoe’s user profile, even tho it contains that term.
Similarly, I have another page template that includes
<?php wp_list_bookmarks('title_li=&category_before=&category_after='); ?>
but searches for terms contained in the ‘Name’ field of Links do NOT find the page that users that page template.
So, my question is: how to I augment the search results to include pages that contain dynamically generated content?
- The topic ‘searching user metadata’ is closed to new replies.