Hi @rparenter,
Thank you for your message.
Could you explain in more detail your case?
Hi Mateusz,
Sure.
So, on search.php i have the following code:
<h2 class="search-post-title h5"><?php the_title(); ?></h2>
<p class="search-post-status"><?php echo $posttype; ?> </p>
<?php if (get_the_excerpt()) { ?>
<span class="search-post-excerpt"><?php the_excerpt(); ?></span>
<?php } ?>
That is showing the title, post type and excerpt of each page that are matching with my query search.
I have installed your plugin, because I have for example, one page, that will not have excerpt, it have only custom fields. So, now this new page, will be showing on results, because the custom fields match with my search, here your plugin are working perfectly, it finds that that page have some postmeta with my search. But on results, it will show only the title and posttype, will not show any text. So my question is if it’s possible to show all postmeta values that match with search.
Example: I search dolor “dolor sit”
My client wants the following result:
Title of Page 1
Project
Lorum ipsum dolor sit amet… -> (note:this is a acf postmeta of the page 1)
ABCD dolor sit … -> (another postmeta of page 1)
Best regards,
Rui Parente
The plugin is not used to build a search results page. It modifies the database query to make the search relate to values from ACF fields. What you would like to achieve is not part of this plugin.