Support » Plugin: WP Car Manager » Search Bar

  • Resolved brentRnelson

    (@brentrnelson)


    This is great plugin except one deal breaker: There is no Search Bar shortcode and the WordPress Search Bar will not find any content using Wp Car Manager. Cannot use this until that is implemented.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter brentRnelson

    (@brentrnelson)

    Thanks Vinod, this could be a life saver.

    Thread Starter brentRnelson

    (@brentrnelson)

    Not sure why it’s not populating anything.
    https://fuel.webdesignchilliwack.com

    1) That is not an issue from the plugin that you don’t see any results to the wordpress search. But you can easily add this yourself with some code.

    add_filter( 'pre_get_posts', 'prefix_cpt_search' );
    function prefix_cpt_search( $query ) {
    	
        if ( $query->is_search ) {
    	$query->set( 'post_type', array( 'post', 'page', 'wpcm_vehicle' ) );
        }
        
        return $query;
        
    }

    Please note above snippet is not tested!

    You should add this to your themes functions.php

    2) Can’t see anything wrong with the wpcarmanager plugin all is working.

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello,

    Our plugin comes with a single shortcode to display the listings and search/filter field. You can learn more about it at https://www.wpcarmanager.com/kb/listings-page/.

    meissandiaye1

    (@meissandiaye1)

    hello , is it possible to change the default values of price, year and kilometer on the filter bar…
    i need to put my own prices ..
    thank you dears

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