Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter rparenter

    (@rparenter)

    Hi!

    Perfect, it works.

    One last question, how about the city field?
    I have tried:

    $subscriber->merge_fields[ “ADDRESS” ][“city”] = sanitize_text_field( $_POST[‘input_17’] );

    and

    $subscriber->merge_fields[“CITY”] = sanitize_text_field( $_POST[‘input_17’] );

    And didn’t work.

    Best regards,
    Rui Parente

    Thread Starter rparenter

    (@rparenter)

    Sorry, you can delete this ticket, is showing now, I was testing the plugin on another installation of the website.

    Best regards,
    Rui Parente

    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

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