• Resolved rparenter

    (@rparenter)


    Hi.

    I have installed your plugin, and when I show the results on search.php, it’s only shows the pages where acf fields are located. It’s the a way to show the text of each acf matched on search.php?

    Thanks,
    Rui Parente

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hi @rparenter,

    Thank you for your message.

    Could you explain in more detail your case?

    Thread Starter rparenter

    (@rparenter)

    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

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Show results’ is closed to new replies.