WP Residence Help WP Residence Help

Home / FAQ / Error on Single Property Page: Call to undefined function wpestate_return_property_address()

Error on Single Property Page: Call to undefined function wpestate_return_property_address()

241 views 0

Issue:
If you see the following error on a single property page:

Uncaught Error: Call to undefined function wpestate_return_property_address()
in wp-content/themes/wpresidence/templates/listing_templates/property-page-templates/address_under_title.php on line 37

It typically appears in the call stack when loading the property page layout.

Cause:

This error usually occurs when you disable all property taxonomies (such as category, action, city, area, or county/state) from the Theme Options > General > Property Settings panel, but you still use a template that relies on these taxonomies.

The function wpestate_return_property_address() is used to generate the property address based on taxonomy values. If those are turned off, the function fails due to missing dependencies.

How to Fix:

To resolve this issue, you have two options:

Option 1 – Re-enable the Taxonomies:

  • Go to Theme Options > General > Property Settings.

  • Re-enable at least the main taxonomies (e.g., City, Area, Category).

  • This will ensure that functions like wpestate_return_property_address() have the necessary data to generate output.

Option 2 – Use a Custom Template That Doesn’t Rely on Taxonomies:

  • If you intend to hide all property taxonomies, consider using a custom property template that does not call wpestate_return_property_address() or similar taxonomy-based functions.

  • You can override the file address_under_title.php in your child theme and remove or replace the function call with your own static content or a fallback mechanism.

 Additional Note:

This is not a bug in the theme – it’s a result of removing taxonomy data while still using a default template designed to include them. As long as the template calls taxonomy-related functions, some data must be present.

If you need help modifying templates to work without taxonomies, feel free to reach out to our support team.

FAQ

Related Articles

  • Create custom Login/Register buttons in elementor
  • How to change the login icon on mobile.
  • Core Plugin deactivates when another theme, different than WpResidence is activated
  • How to copy VP bakery shortcode to a new page

WP Residence Documentation

Join Us On

Powered by WP Estate - All Rights Reserved