ID, 'gallery_post', True); if ($gallery_post > 0) { $gallery_post_content = do_shortcode('[gallery id="'. $gallery_post .'" captiontag="" itemtag="div" icontag="span" ]'); $content .= '
Gallery Category: " . $category->name . "
"; $posts = get_posts(array('numberposts' => -1, 'category' => $category->term_id, 'exclude' => $exclude)); $upload_dir = wp_upload_dir(); $plugin_url = $upload_dir['baseurl'] . "/../plugins/gallery-post/gallery-post-show.php"; echo 'Select the gallery to attach to the post: '; echo '
'; echo ''; ?> 1) { // save the post data update_post_meta($post_id, 'gallery_post', $gallery_post); // update the thumbnail id $thumbnail_id = get_post_thumbnail_id($gallery_post); update_post_meta( $post_id, '_thumbnail_id', $thumbnail_id ); } else { // remove post meta data $gp = get_post_meta($post_id, 'gallery_post', True); if ($gp) { delete_post_meta($post_id, 'gallery_post'); delete_post_meta($post_id, '_thumbnail_id'); } } return $gallery_post; } function gallery_post_settings_page() { global $wpdb; ?>This is the category that empty gallery posts are stored in.
| Title | Author | Status | Date |
|---|---|---|---|
| ', ' | ', $result->ID); print '' . $result->display_name . ' | '; print '' . $result->post_status . ' | '; print '' . $result->post_date . ' | '; print '
| None found. | |||
| Title | Author | Status | Date |
|---|---|---|---|
| ', ' | ', $result->object_id); print '' . $result->display_name . ' | '; print '' . $result->post_status . ' | '; print '' . $result->post_date . ' | '; print '
| None found. | |||
| Title | Author | Status | Date |
|---|---|---|---|
| ', ' | ', $result->object_id); print '' . $result->display_name . ' | '; print '' . $result->post_status . ' | '; print '' . $result->post_date . ' | '; print '
| None found. | |||