• sudiptomedia

    (@sudiptomedia)


    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/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TC.K

    (@wp_dummy)

    The shortcode can be placed on your post/page content as well as the sidebar widget.

    Date search is more complicated. It required some customization.

    Thread Starter sudiptomedia

    (@sudiptomedia)

    How the shortcode can be putted, please go through my above code and show me an sample. Also how it can be customized for selecting a range of date .

    Plugin Author TC.K

    (@wp_dummy)

    It’s has nothing to do with your above code.
    For the shortcode, please read this.
    If you have no idea what a shortcode is and what it does, you can’t use this plugin.

    Thread Starter sudiptomedia

    (@sudiptomedia)

    I have an idea about shortcode but in which portion that code to be inserted? Please guide me.

    Plugin Author TC.K

    (@wp_dummy)

    Clearly, you still didn’t get it.
    As I said, you have to insert the shortcode into your post/page content or sidebar widget.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to integrate’ is closed to new replies.