• Hi

    I’m having difficualties defining the URL with a custom field within an array

    $apps = array(
            'iPhone OS' => array(
                'name' => 'iPhone app',
                'url' => get_post_meta($post->ID, 'iphone_app_link', true),
                'version_support_rex' => '/.*/'
            ),
            'Android' => array(
                'name' => 'Android app',
                'url' => get_post_meta($post->ID, 'android_app_link', true),
                'version_support_rex' => '/^[23456789].*$/'
            ),

    What am I doing wrong?

    Thanks

  • The topic ‘Custom field array issue’ is closed to new replies.