• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Need Help Editing AgentListing Plugin

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.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Need Help Editing AgentListing Plugin

This topic is: resolved

Tagged: AgentPress Listings plugin, Agentpress Pro

  • This topic has 8 replies, 4 voices, and was last updated 8 years, 4 months ago by Genesis Developer.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • January 12, 2015 at 6:49 am #137162
    niceup
    Member

    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,000

    I 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/

    agent listing plugin with no text

    January 12, 2015 at 7:42 am #137165
    Davinder Singh Kainth
    Member

    Check 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 Themes

    January 12, 2015 at 8:08 am #137168
    niceup
    Member

    Thanks 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 #137171
    Davinder Singh Kainth
    Member

    For 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 Themes

    January 12, 2015 at 10:33 am #137189
    niceup
    Member

    I 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 #137191
    Carlo
    Member

    Hi. 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’ ) );

    Comprehensive, easy to follow Genesis documentation

    January 14, 2015 at 9:58 pm #137508
    niceup
    Member

    when 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 #137534
    Carlo
    Member

    Sorry 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' ) );

    Comprehensive, easy to follow Genesis documentation

    January 15, 2015 at 10:35 pm #137622
    Genesis Developer
    Member

    @niceup: Problem is solved. Please mark it as RESOLVED.


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble