Cant find any fields
-
I am creating my own theme and am trying to use the search form with this plugin. The search form itself works, but I can’t find any ACF fields.
My search.php looks like this, am I missing something?
<div> <?php $query = new WP_Query( array( 's' => get_search_query() ) ); if ( $query->have_posts() ) { _e("<h2>Search Results for: ".get_query_var('s')."</h2>"); while ( $query -> have_posts() ) { $query -> the_post(); ?> <li> <a href="<?php the_permalink(); ?>"> <?php the_title(); ?> </a> </li> <?php } } else { ?> <h2>Nothing Found</h2> <p>Sorry, but nothing matched your search criteria. Please try again with some different keywords.</p> <?php } ?> </div>
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Cant find any fields’ is closed to new replies.