Add custom field support to dsIDXpress IDX Pages

An IDX+ customer recently asked how to use custom fields with the Diverse Solutions IDX Pages. The issue was that no matter what he tried, the custom field data wasn’t being saved.

Code sample to add Custom Field support to IDX Pages

Add the following to your theme’s functions.php file:

// Run at 20 priority so it's after the post type is registered at 10
add_action('init', 'add_idx_listing_pages_custom_field_support', 20 );

// Enable post support for Custom Fields
function add_idx_listing_pages_custom_field_support() {
add_post_type_support( 'ds-idx-listings-page', 'custom-fields' );

This will allow using custom field data for the IDX Pages, and you can then use plugins like Advanced Custom Fields to add the content on your IDX+ custom templates.

Tags: , ,

Comments are closed.