How to integrate
-
Hi,
I have uploaded the plugin and also followed the steps. But I am not able to understand where the shortcode to be putted. Also if an user wants to search the posts by a specific range of date then how it can be done. For that I want to insert one select date range option but I am not able to do that also. Please guide me in these regards. Also I have attached my existing search forms code below:
=======================SEARCH FORM===========================
<?php get_header(); ?><?php // Get Theme Options from Database
$theme_options = courage_theme_options();
?><div id=”wrap” class=”clearfix”>
<section id=”content” class=”primary” role=”main”>
<?php if (have_posts()) : ?>
<h2 id=”search-title” class=”archive-title”>
<?php printf( __( ‘Search Results for: %s’, ‘courage’ ), ‘<span>’ . get_search_query() . ‘</span>’ ); ?>
</h2><?php while (have_posts()) : the_post();
get_template_part( ‘content’, $theme_options[‘posts_length’] );
endwhile;
courage_display_pagination();
else : ?>
<h2 id=”search-title” class=”archive-title”>
<?php printf( __( ‘Search Results for: %s’, ‘courage’ ), ‘<span>’ . get_search_query() . ‘</span>’ ); ?>
</h2><div class=”post”>
<div class=”entry”>
<p><?php _e(‘No matches. Please try again, or use the navigation menus to find what you search for.’, ‘courage’); ?></p>
</div></div>
<?php endif; ?>
</section>
<?php get_sidebar(); ?>
</div><?php get_footer(); ?>
===================SEARCHFORM.PHP=============================
<form role=”search” method=”get” class=”search-form” action=”<?php echo esc_url( home_url( ‘/’ ) ); ?>”>
<label>
<span class=”screen-reader-text”><?php _ex( ‘Search for:’, ‘label’, ‘courage’ ); ?></span>
<input type=”search” class=”search-field” placeholder=”<?php echo esc_attr_x( ‘Search …’, ‘placeholder’, ‘courage’ ); ?>” value=”<?php echo esc_attr( get_search_query() ); ?>” name=”s”>
</label>
<button type=”submit” class=”search-submit”>
<span class=”genericon-search”></span>
</button>
</form>==================================================================
https://wordpress.org/plugins/ultimate-wp-query-search-filter/
- The topic ‘How to integrate’ is closed to new replies.