Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Pull all the posts into an array
- $options_posts = array();
- $options_posts_obj = get_posts('numberposts=999');
- $options_posts[''] = 'Select a post:';
- foreach ($options_posts_obj as $post) {
- $options_posts[$post->ID] = $post->post_title;
- }
- $options[] = array(
- 'name' => __('Title Goes Here', 'options_check'),
- 'desc' => __('sub title?', 'options_check'),
- 'id' => 'post_select',
- 'type' => 'select',
- 'options' => $options_posts);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement