Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter shrco

    (@shrco)

    I have since made my own workaround and have that up and running. However, it is still unclear if this plugin supports idealista exports or not at this time in case I wanted to use that function in the future. Thank you -A

    Forum: Plugins
    In reply to: [Houzez Property Feed] desc
    Thread Starter shrco

    (@shrco)

    Thanks, I got it to work fine!

    Forum: Plugins
    In reply to: [Houzez Property Feed] desc
    Thread Starter shrco

    (@shrco)

    I also saw the idea to use custom php code to hook into the houzez_feed_property filter to modify the desc field to merge the descriptions together for the XML feed. This is advanced for me, I’m not sure that will work, and I don’t want to go that route if possible. the code snippet suggested was this:

    add_filter('houzez_feed_property', function ($property, $post_id) {
    // Fetch the translations from custom fields (replace with your field names)
    $description_en = get_post_meta($post_id, 'description_en', true);
    $description_it = get_post_meta($post_id, 'description_it', true);
    $description_es = get_post_meta($post_id, 'description_es', true);

    // Build the <desc> structure with translations
    $property['desc'] = '<en>' . esc_html($description_en) . '</en>'
    . '<it>' . esc_html($description_it) . '</it>'
    . '<es>' . esc_html($description_es) . '</es>';

    // Return the modified property
    return $property;
    // Build the <desc> structure with translations
    $property['desc'] = '<en>' . esc_html($description_en) . '</en>'
    . '<it>' . esc_html($description_it) . '</it>'
    . '<es>' . esc_html($description_es) . '</es>';

    // Return the modified property
    return $property;
    }, 10, 2);

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)