Title: Custom field array issue
Last modified: August 21, 2016

---

# Custom field array issue

 *  [Stefan](https://wordpress.org/support/users/stefan83/)
 * (@stefan83)
 * [12 years ago](https://wordpress.org/support/topic/custom-field-array-issue/)
 * 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.

## Tags

 * [custom field](https://wordpress.org/support/topic-tag/custom-field/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Stefan](https://wordpress.org/support/users/stefan83/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/custom-field-array-issue/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
