Forum Replies Created
-
AuthorPosts
-
RMSMember
Thanks for the reply. I don't have the listings page under my "pages." Could that be because it is a plugin from studiopress?
Thanks again!
RMSMemberThank you.
Disabling super cache has seemed to work.
I (finally) upgraded to agent press 2.0 and now all my listings are getting 404 errors as you mentioned. This is Frusturating. Everything was working fine before the update. Wish I would have left well enough alone.
RMSMemberThanks for the answer, I couldn't figure it out, so it will have to stay "Search Properties" for now.
Another question: Is there a way that I can get the images that show in the slider to shrink to fit the whole image in the slider automatically?
Thanks in advance!
RMSMemberAnd thank you, you have been very, very helpful!
RMSMemberForgive my ignorance, but how would I do that?
RMSMemberThat was very helpful. Didn't even know it existed, like I said, I am novice at this stuff, but learning. I changed the text from properties to inventory. But it still shows "properties" on the button. Thanks again for your help! Here's the file I edited:
<?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 AgentPress_Listings_Search_Widget() {
$widget_ops = array( 'classname' => 'property-search', 'description' => __( 'Display property search dropdown', 'apl' ) );
$control_ops = array( 'width' => 200, 'height' => 250, 'id_base' => 'property-search' );
$this->WP_Widget( 'property-search', __( 'AgentPress - Listing Search', 'apl' ), $widget_ops, $control_ops );
}function widget( $args, $instance ) {
$instance = wp_parse_args( (array) $instance, array(
'title' => '',
'button_text' => __( 'Search Inventory', 'apl' )
) );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="hidden" 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 Inventory', 'apl' )
) );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:', 'apl' ), $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', 'apl' ); ?></h5>
<?php
foreach ( (array) $listings_taxonomies as $tax => $data ) {
$terms = get_terms( $tax );
if ( empty( $terms ) )
continue;
?>
<p><label><input id="<?php echo $this->get_field_id( $tax ); ?>" type="checkbox" name="<?php echo $this->get_field_name( $tax ); ?>" value="1" <?php checked( 1, $instance[$tax] || $new_widget ); ?>/> <?php echo $data['labels']['name']; ?></label></p>
<?php
}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:', 'apl' ), $this->get_field_id( 'button_text' ), $this->get_field_name( 'button_text' ), esc_attr( $instance['button_text'] ), 'width: 95%;' );
}
}RMSMemberFinally figured it out!
RMSMemberI appreciate that. I've tried tinkering with it, but if I delete only the "zip" section (which correlates with mileage in my case), it will only end up showing the "address" (or year for me). Not sure where to go from there...
RMSMemberI've looked there, but not exactly sure what to delete?
RMSMemberJust saw your post to check all font families. That did it. Thank you, you are a saint 🙂
RMSMemberThank you very much!
I have one other question:
On my listings, it shows the Year, Make and Model, and mileage of the Vehicle. I want to delete the mileage so that it will just be year, make and model. (i.e. 2006 Mercury Montego). Any ideas where to start? I am a complete novice on all this. Small business trying to do it myself.
Thanks in advance!
RMSMemberHello, I am having the same issue now with the fonts. I really preferred the AgentPress theme's font that is in the demo. Any idea how I can change that back? Thanks!
March 20, 2013 at 8:02 am in reply to: How do I duplicate my site just like the demo Agency theme? #29684RMSMemberI think you misunderstood my question. I was asking the other guys because I was having the same troubles you were.
March 19, 2013 at 7:30 pm in reply to: How do I duplicate my site just like the demo Agency theme? #29549RMSMemberThis is probably a stupid question, but do you use the XML file from the agent press file, or the sample file?
Thanks!
-
AuthorPosts