Listing Templates – can the Property Seach widget, be moved to the top of page

Easy Property Listings WordPress Real Estate Plugin Forums Priority Support Listing Templates – can the Property Seach widget, be moved to the top of page

Viewing 2 posts - 1 through 2 (of 2 total)

These forums are closed to new replies / tickets. Please open a support ticket from our new Support page.

  • Author
    Posts
  • #17046
    andrew rushworth
    Spectator

    Hi

    Listing Templates – can the Property Search widget, be moved to the top of the property listing page, rather than being located in a sidebar?

    Thanks
    Andrew

    Attachments:
    You must be logged in to view attached files.
    #17060
    Merv Barrett
    Keymaster

    Yes. Copy the archive-listing.php file from plugins/easy-property-listings/lib/templates/themes/default/

    and place it in your theme/child folder. then after or before the

    tag insert

    <?php echo do_shortcode('[listing_search post_type=property,land,rental style=wide]'); ?> // Will output the tabbed wide style

    Other shortcode options are here https://easypropertylistings.com.au/docs/listing_search-short-code/ The option order is important.

    Or you can create if/else statements for each listing type so that you can specify different shortcode options eg.

    <?php 
    if ( is_post_type_archive( 'property' ) ) {
    	// Property
    	echo do_shortcode('[listing_search post_type=property style=wide]');
    } elseif ( is_post_type_archive( 'rental' ) ) {
    	// Rental
    	echo do_shortcode('[listing_search post_type=rental style=wide]');
    } elseif ( is_post_type_archive( 'land' ) ) {
    	// Land
    	echo do_shortcode('[listing_search post_type=land style=wide]');
    } elseif ( is_post_type_archive( 'rural' ) ) {
    	// Rural
    	echo do_shortcode('[listing_search post_type=rural style=wide]');
    } else {
    	// Default catch all
    	echo do_shortcode('[listing_search post_type=property,land,rental,rural style=wide]');
    }
    ?>

These forums are closed to new replies / tickets. Please open a support ticket from our new Support page.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Priority Support’ is closed to new topics and replies.