Community Forums › Forums › Archived Forums › Design Tips and Tricks › Need Help Editing AgentListing Plugin
Tagged: AgentPress Listings plugin, Agentpress Pro
- This topic has 8 replies, 4 voices, and was last updated 9 years, 11 months ago by Genesis Developer.
-
AuthorPosts
-
January 12, 2015 at 6:49 am #137162niceupMember
Hi,
I am using this theme to list businesses for sale. I do not release the address of the business as it os confidential. so i rather have other listing info about the business besides the address.
How do I edit the agent listings plugin to show my listings text and data values?
I manage to get it to show the values (the number vales) but i need to show the title of the values. For example Gross Income $728,000. Instead of just the $728,000I managed to make the following changes in the taxomony.php
function agentpress_listing_archive_loop() {
if ( have_posts() ) : while ( have_posts() ) : the_post();
$listing_price = genesis_get_custom_field( '_listing_price' );
$listing_text = genesis_get_custom_field( '_listing_text' );
$address = genesis_get_custom_field( '_listing_address' );
$city = genesis_get_custom_field( '_listing_city' );
$state = genesis_get_custom_field( '_listing_state' );
$zip = genesis_get_custom_field( '_listing_zip' );and also the following in the agentpress-listings/includes/class-featured-listings-widget.php
//* Pull all the listing information
$custom_text = genesis_get_custom_field( '_listing_text' );
$price = genesis_get_custom_field( '_listing_price' );
$address = genesis_get_custom_field( '_listing_cashflow' );
$city = genesis_get_custom_field( '_listing_ff&e' );I am using this theme
http://demo.studiopress.com/agentpress/January 12, 2015 at 7:42 am #137165Davinder Singh KainthMemberCheck this - http://genesisdeveloper.me/adding-extra-features-agentpress-featured-listings-widget/
Sunshine PRO genesis theme
Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis ThemesJanuary 12, 2015 at 8:08 am #137168niceupMemberThanks for the link Davinder.
It was great info, but it does not completely solve my issue.
How would I input the details (text and values) of the business in the agent listings plugin? For example Gross Profit (value) , Cash Flow (value)Thanks
January 12, 2015 at 8:14 am #137171Davinder Singh KainthMemberFor a custom solution, I suggest you contact Genesis Developer Chimoy here http://genesisdeveloper.me
Sunshine PRO genesis theme
Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis ThemesJanuary 12, 2015 at 10:33 am #137189niceupMemberI did thanks.
I hope that I receive a response from someone here while I wait for Chimoy to respond
January 12, 2015 at 10:43 am #137191CarloMemberHi. You could try using this where you edited the code before:
$price = sprintf( 'Price %s', genesis_get_custom_field( ‘_listing_price’ ) ); $address = sprintf( 'Cash Flow %s', genesis_get_custom_field( ‘_listing_cashflow’ ) );
January 14, 2015 at 9:58 pm #137508niceupMemberwhen entered the code you provided my site crashed with a white screen, luckily i saved the original code
January 15, 2015 at 8:58 am #137534CarloMemberSorry niceup. This should work:
$price = sprintf( 'Price %s', genesis_get_custom_field( '_listing_price' ) ); $address = sprintf( 'Cash Flow %s', genesis_get_custom_field( '_listing_cashflow' ) );
January 15, 2015 at 10:35 pm #137622Genesis DeveloperMember@niceup: Problem is solved. Please mark it as RESOLVED.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.