searching custom field values with repeater field
-
I want to search the custom field values display in my page, and the results want to be displayed in the same page itself.
My page div for displaying this custom field value are:<div class="opening-form" id="opening-form"> <?php if( have_rows('account_opening_forms_section') ): while( have_rows('account_opening_forms_section') ): the_row(); ?> <h5><?php echo the_sub_field("main_heading"); ?></h5> <div class="opening-form-listing"> <ul class="list-unstyled mb-0"> <?php if( have_rows('account_opening_forms') ): while( have_rows('account_opening_forms') ): the_row(); ?> <li> <div class="d-flex justify-content-between align-items-center w-100"> <h4><?php echo the_sub_field("title"); ?></h4> <a href="<?php echo the_sub_field("download_link"); ?>" target="_blank" class="icon-download"></a> </div> </li> <?php endwhile; ?> <?php endif; ?> </ul> </div> <?php endwhile; ?> <?php endif; ?> </div>
But how can i search this values
my search form is<form id="search-form" method="POST"> <div class="search-form"> <input type="text" class="search-box form-control" placeholder="Search by form name" name="s" value="<?php echo get_search_query(); ?>"> <a href="javascript:void(0);" class="icon-search" id="formSearch"></a> </div> </form>
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘searching custom field values with repeater field’ is closed to new replies.