agentevolution
Forum Replies Created
-
Forum: Plugins
In reply to: [IMPress Listings] Single listing is on the left side of pageBecause the way different themes do things, often incorrectly, you will likely have to create a custom single listing template using your theme’s single.php template file markup as starter.
Forum: Plugins
In reply to: [IMPress Listings] Change Labels ProblemLooks like this was introduced in the last plugin update when we added schema.org support for the listings. In doing so, we changed how those fields are output in the single-listing.php template. Will look into addressing this in the next update, but in the meantime, you can copy the single-listing.php file from the plugin’s /includes/views/ folder to your theme folder.
Once you’ve copied it to your theme folder, edit the single-listing.php file at around line 113 you’ll see the lines outputting that data:
echo '<tbody class="left">'; echo '<tr class="wp_listings_listing_price"><td class="label">Price:</td><td>'.get_post_meta( $post->ID, '_listing_price', true) .'</td></tr>'; echo '<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">'; echo '<tr class="wp_listings_listing_address"><td class="label">Address:</td><td itemprop="streetAddress">'.get_post_meta( $post->ID, '_listing_address', true) .'</td></tr>'; echo '<tr class="wp_listings_listing_city"><td class="label">City:</td><td itemprop="addressLocality">'.get_post_meta( $post->ID, '_listing_city', true) .'</td></tr>'; echo '<tr class="wp_listings_listing_state"><td class="label">State:</td><td itemprop="addressRegion">'.get_post_meta( $post->ID, '_listing_state', true) .'</td></tr>'; echo '<tr class="wp_listings_listing_zip"><td class="label">Zip:</td><td itemprop="postalCode">'.get_post_meta( $post->ID, '_listing_zip', true) .'</td></tr>'; echo '</div>'; echo '<tr class="wp_listings_listing_mls"><td class="label">MLS:</td><td>'.get_post_meta( $post->ID, '_listing_mls', true) .'</td></tr>'; echo '</tbody>';Then just change the data field names to the same as your custom field names and remove or change the schema.org markup if applicable.
Forum: Plugins
In reply to: [IMPress Listings] Remove Listing navigationEither edit the template and remove the pagination function, or use CSS to set it to display: none
Forum: Plugins
In reply to: [IMPress Listings] Activate Genesis Agent Profile PluginIf not using Genesis or a Genesis child theme, you cannot use the Genesis Agent Profiles plugin.
Forum: Plugins
In reply to: [IMPress Listings] Remove CommentsTurn off comments on the listing post.
Forum: Plugins
In reply to: [IMPress Listings] Decrease Feature ImagesThe image will span the width of its parent container. You can use CSS to reduce the image size with something like this:
.wplistings-single-listing .listing-image-wrap img {width: 50%;}Forum: Plugins
In reply to: [IMPress Listings] Email not sendingThe listing inquiry email goes to the email address listed in the author’s user profile. Check the listing has the correct author or that the correct email address is in the user profile.
Forum: Plugins
In reply to: [IMPress Listings] [listings term="rental"] ????Per the usage instructions, the term parameter must be used with the taxonomy parameter: https://wordpress.org/plugins/wp-listings/installation/
Forum: Plugins
In reply to: [IMPress Listings] Photo gallery bugUnable to access your site using the password provided.
Some photo gallery plugins may not work in a tabbed container. See this post for more info: https://wordpress.org/support/topic/alternative-to-jetpack-carousel-for-image-gallery?replies=1
Forum: Plugins
In reply to: [IMPress Listings] NextGEN Gallery by Photocrati does not workSee this post for an explanation of why this happens and some solutions: https://wordpress.org/support/topic/alternative-to-jetpack-carousel-for-image-gallery?replies=1
You would need to write some custom functions to clean the price field and then a custom template to then sort by that field. See this post for more info:
https://wordpress.org/support/topic/change-the-display-order-of-listings?replies=2Forum: Plugins
In reply to: [IMPress Listings] Listing SyndicationIf those services support syndication via RSS, the listings post type has it’s own RSS feed at:
http://yourdomain.com/listings/feed/Forum: Plugins
In reply to: [IMPress Listings] Alternative to Jetpack Carousel for Image Gallery?Most lightbox plugins will work. The issue is only with some lightboxes where, because the photo gallery tab is hidden on page load, it doesn’t have an explicitly defined height and width.
If the lightbox plugin of your choice does not work in a tabbed container, you can edit the single-listing.php template (copy it to your theme folder and it will not get overwritten in a theme update) and pull the photo gallery out of the tabs and into it’s own page section that is visible on page load (or make it the first loaded tab).
Forum: Plugins
In reply to: [IMPress Listings] Change the display order of listingsYou’d need to write a custom function to remove dollar signs and commas from the price field, save it as a new meta field, and then sort by that.
Here are some old functions, specific to Genesis Framework, that could work but you would need to update and customize:
function clean_listing_prices() { $args = array( 'numberposts' => 1, 'post_type' => 'listing' ); $listing_posts = get_posts($args); $clean_price_field = get_post_meta($listing_posts[0]->ID, '_clean_listing_price', true); if ( !empty($clean_price_field) ) { return; } $args = array( 'post_type' => 'listing', 'posts_per_page' => -1 ); $lq = new WP_Query($args); while ( $lq->have_posts() ) : $lq->the_post(); $price = genesis_get_custom_field('_listing_price'); $clean_price = preg_replace('/[\$,]/', '', $price); $id = get_the_ID(); update_post_meta($id, '_clean_listing_price', $clean_price); endwhile; } function wpl_ordered_listings_content() { clean_listing_prices(); $args = array( 'post_type' => 'listing', 'numberposts' => -1, 'meta_key' => '_clean_listing_price', 'orderby' => 'meta_value_num', 'order' => 'DESC', 'status' => 'active' ); $active_listings = get_posts($args); $args['status'] = 'pending'; $pending_listings = get_posts($args); $args['status'] = 'sold'; $sold_listings = get_posts($args); echo '<h2 class="taxonomy-title">Active Listings</h2>'; wpl_iterate_posts($active_listings); echo '<h2 class="taxonomy-title">Pending Listings</h2>'; wpl_iterate_posts($pending_listings); echo '<h2 class="taxonomy-title">Sold Listings</h2>'; wpl_iterate_posts($sold_listings); }Forum: Plugins
In reply to: [IMPress Listings] Add taxonomy with terms linksYes, using
racesas an example the code would look like:if ( '' != wp_listings_get_races() ) { $listing_meta .= sprintf( '<li>Type: %s', get_the_term_list( get_the_ID(), 'races', '', ', ', '' ). '</li>' ); }Note the change in the get_the_term_list function also.