-
Search Results
-
Hi,
Really easy question if you know the answer, all I am trying to figure currently, I am using the agent press listings plug in.. by default it seems the plugin automatically lists all new entries in order of input.
e.g I input a vehicle, this displays on the home page as a feature item, do the next one and so forth.
What I want to do is display on the home page only selected vehicles to advertise, not sequential order of input.. the documentation seems light as to this answer ? There is a feature option, although also unsure as to what this does 🙁 again cant find documentation..
Any ideas ? or help very much appreciated.
Thanks you
dcav
I'm using the Agent Focused theme and the Agentpress listings plugin, and I've found the search box doesn't order the options sequentially - it appears like they are ordered by popularity (see screenshot). Does anyone know how to change the order of the options in the search box?
Thank you!
[Resolved]Topic: AgentPress Listings – Order taxonomies
Hi,
Agentpress theme + agentpress-listings pluging
Need to reoder the listing Taxonomies.
Using "AgentPress Listings Taxonomy Reorder" pluging works good, but ID "features" can´t be reorder.Needs to show "features" taxonomy the last one on the search widget, and it appear the first one.
Regards
Hey guys,
It took some time to figure out, but I've realized that my filter issues on the home page have to do with the "Count" under the various Taxonomies.
The count that is found beside each taxonomy (e.g. Bedrooms 1, 2, and 3) have a count based on the number of listings assigned to that taxonomy. In the filters, the Bedrooms, Pricing, etc are all out of order due to the order being by whichever has the highest Count or number of homes assigned to that taxonomy.
How can I disable Count, so it will no longer filter by the highest count to the lowest? In other words, I need, for example, Bedrooms to start with 1 Bedroom then 2 Bedroom so on and so on.
Any help would be greatly appreciated.
The website is here: soldiersfirstrealestate.com
[Resolved]Topic: Modify Search Function
I have asked a similar question and I need a little more guidance. I have modified the search code as shown below. Essentially, I took this line of code and the bolded language used to be "hidden" now I have made it "textbox." and a textbox appears. When I run a search based on registered taxonomies, it works with some taxonomies, but not another. Of course, I need the one not being searched. What else do I modify to search a specific registered taxonomy?
echo '<form role="search" method="get" id="searchform" action="' . home_url( '/' ) . '" ><input type="<strong>textbox</strong>" value="" name="s" /><input type="hidden" value="listing" name="post_type" />';
<?php /** * This widget presents a search widget which uses listings' taxonomy for search fields. * * @package AgentPress * @since 2.0 * @author Ron Rennick */ class AgentPress_Listings_Search_Widget extends WP_Widget { function __construct() { $widget_ops = array( 'classname' => 'property-search', 'description' => __( 'Display property search dropdown', 'agentpress-listings' ) ); $control_ops = array( 'width' => 200, 'height' => 250, 'id_base' => 'property-search' ); parent::__construct( 'property-search', __( 'AgentPress - Listing Search', 'agentpress-listings' ), $widget_ops, $control_ops ); } function widget( $args, $instance ) { $instance = wp_parse_args( (array) $instance, array( 'title' => '', 'button_text' => __( 'Search Properties', 'agentpress-listings' ) ) ); global $_agentpress_taxonomies; $listings_taxonomies = $_agentpress_taxonomies->get_taxonomies(); extract( $args ); echo $before_widget; if ( $instance['title'] ) echo $before_title . apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base ) . $after_title; echo '<form role="search" method="get" id="searchform" action="' . home_url( '/' ) . '" ><input type="<strong>textbox</strong>" value="" name="s" /><input type="hidden" value="listing" name="post_type" />'; foreach ( $listings_taxonomies as $tax => $data ) { if ( ! isset( $instance[$tax] ) || ! $instance[$tax] ) continue; $terms = get_terms( $tax, array( 'orderby' => 'count', 'order' => 'DESC', 'number' => 100, 'hierarchical' => false ) ); if ( empty( $terms ) ) continue; $current = ! empty( $wp_query->query_vars[$tax] ) ? $wp_query->query_vars[$tax] : ''; echo "<select name='$tax' id='$tax' class='agentpress-taxonomy'>\n\t"; echo '<option value="" ' . selected( $current == '', true, false ) . ">{$data['labels']['name']}</option>\n"; foreach ( (array) $terms as $term ) echo "\t<option value='{$term->slug}' " . selected( $current, $term->slug, false ) . ">{$term->name}</option>\n"; echo '</select>'; } echo '<input type="submit" id="searchsubmit" class="searchsubmit" value="'. esc_attr( $instance['button_text'] ) .'" /> <div class="clear"></div> </form>'; echo $after_widget; } function update( $new_instance, $old_instance ) { return $new_instance; } function form( $instance ) { $instance = wp_parse_args( (array) $instance, array( 'title' => '', 'button_text' => __( 'Search Properties', 'agentpress-listings' ) ) ); global $_agentpress_taxonomies; $listings_taxonomies = $_agentpress_taxonomies->get_taxonomies(); $new_widget = empty( $instance ); printf( '<p><label for="%s">%s</label><input type="text" id="%s" name="%s" value="%s" style="%s" /></p>', $this->get_field_id( 'title' ), __( 'Title:', 'agentpress-listings' ), $this->get_field_id( 'title' ), $this->get_field_name( 'title' ), esc_attr( $instance['title'] ), 'width: 95%;' ); ?> <h5><?php _e( 'Include these taxonomies in the search widget', 'agentpress-listings' ); ?></h5> <?php foreach ( (array) $listings_taxonomies as $tax => $data ) { $terms = get_terms( $tax ); if ( empty( $terms ) ) continue; $checked = isset( $instance[ $tax ] ) && $instance[ $tax ]; printf( '<p><label><input id="%s" type="checkbox" name="%s" value="1" %s />%s</label></p>', $this->get_field_id( 'tax' ), $this->get_field_name( $tax ), checked( 1, $checked, 0 ), esc_html( $data['labels']['name'] ) ); } printf( '<p><label for="%s">%s</label><input type="text" id="%s" name="%s" value="%s" style="%s" /></p>', $this->get_field_id( 'button_text' ), __( 'Button Text:', 'agentpress-listings' ), $this->get_field_id( 'button_text' ), $this->get_field_name( 'button_text' ), esc_attr( $instance['button_text'] ), 'width: 95%;' ); } }
Topic: Sort Agentpress Pro Listings
I am wanting to use the Agentpress Pro theme and the agentpress listing plugin to create a site offering home services, not homes. When a search is performed using the agentpress listing search box, I really need the results to be returned and ordered by price (lowest to highest). I tried using the code on Carrie Dils site (http://www.carriedils.com/sort-agentpress-listings-by-price/), but it did nothing.
Is there a snippet of code, plugin, or some way to accomplish this?
Welcome!
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.