ID; $content .= get_content_from_acf( $id ); return $content; } function mwai_parser_pre_post_content_acf( $content, $post_id ) { $content .= get_content_from_acf( $post_id ); return $content; } function get_content_from_acf( $post_id ) { $content = []; $fields = get_fields( $post_id ); foreach ( $fields as $key => $value ) { if ( is_array( $value ) ) { if ( isset( $value['url'] ) ) { $content[] = "{$key}:({$value['url']})"; } } if ( is_string( $value ) ) { $content[] = "{$key}:{$value}"; } } return implode(" ", $content); } Contact US | Magic Towns
Scroll Top

Get in touch with us

Have questions? Feel free to reach out to our team by filling in the form below, or try Magic AI today for immediate assistance.

    Old Fashioned Mail Lover?

    Feel free to send any and all handwritten compliments, Christmas gifts, food samples, requests for partnerships and other polite business correspondence – no spam please – at the addresses below:

    WHO WE ARE?

    OUR PHONES:

    COMPANY NUMBER:

    M32309032S

    WORKING HOURS:

    Monday-Friday: 9:00 to 5:00

    Add Your Heading Text Here

    [wp_login_form]