Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using the Advanced Custom Fields plugin to add a WYSIWYG field that I have uploaded an image gallery into. After the new Media Uploader WP update I can no longer edit the existing galleries as they do not show up in the WYSIWYG, but the images are still attached to the post. If I add new images they show up on the front end but I can not control the order and can not delete them from the post. Is there a way to reconnect the editor to the existing images so I can edit them from the post?

Here is the code I'm using to retrieve the images from the post:

$args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $post->ID, 'orderby' => 'menu_order', 'order' => 'ASC', ); 
$attachments = get_posts($args);
if ($attachments) {
    foreach ( $attachments as $attachment ) {
    echo '<li>';
    echo wp_get_attachment_image($attachment->ID, 'large');
    echo '</li>';     }
}
share|improve this question
Are the images in question attached to the post as attachment post-types, or are they attached to the post as post custom meta data? – Chip Bennett Mar 2 at 22:23
I think attachment post-types because that is how I am accessing them in my template file. I am using the Advanced Custom Fields plugin so I'm not sure how they get saved to the database. – Bostow Mar 3 at 0:56
What do you mean by, that is how I am accessing them in my template file? Can you post the relevant template-file code in your question? – Chip Bennett Mar 3 at 1:57

closed as too localized by toscho Mar 4 at 11:43

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

1 Answer

Advanced Custom Fields made an update that fixed the problem. Still not sure what caused it, but at least it is functioning again. Thanks for your help.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.