• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

Add Custom Fields With Clickable Links To AgentPress Property Listings

This solution enables you to do 2 things on the single listings pages of the AgentPress Pro themes single listings pages:

  1. Add 1 or more custom fields for additional property listings.
  2. Enable hyperlinks in the custom fields.

Here’s the result showing a additional field with a linked website URL and another Custom text field:

Once you’ve added all the code below, add the HTML for your link to any of the custom fields and save.

<a href="http://example.com">example.com</a>

1. Add Custom Property Listings Fields

The following code may already be included in the AgentPress Pro themes functions file. If so, edit it to add your new fields. If not, add the following PHP code to the end of the AgentPress Pro themes functions.php file:

Download Folder

The above code adds 2 custom fields.

  1. The 1st field is named Website
  2. The 2nd field is named Custom

You can now add content to each new field on the Edit Listing admin screen:

But wait!

What if you want to add hyperlinks for a website URL and/or email address?

Register for full access

Related Tutorials

  • Custom Fields On AgentPress Search Results Page
  • Modify AgentPress Listings Plugin Property Details Class Shortcode Function
  • Add Clickable Website Address To AgentPress Pro Property Details Archive Page
  • Add Extra Field To AgentPress Featured Listings Widget

AgentPress Pro Theme

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.