bradhar
Forum Replies Created
-
After the database and files were reverted to a previous backup, we updated wordpress to 4.7 and it was still messed up. We had the host revert them again and this time didn’t update to WP 4.7 and it’s resolved our problem. I guess I’ll wait for the next version and see what happens.
- This reply was modified 9 years, 6 months ago by bradhar.
Thanks for point that out, I didn’t know
Forum: Plugins
In reply to: [CMB2] Display image caption/title/description with File list imagesThanks for your response, Michael. I still wasn’t familiar enough with php or the right WP code to make that object a variable, though.
This is my first project using CMB2 and it’s very helpful. I can’t wait till I can wield it with more brain power. Cheers.
For anyone else having trouble with this, someone helped me out with example code here:
wordpress stackexchange link
Forum: Plugins
In reply to: [CMB2] Display image caption/title/description with File list imagesI’m trying to pull image captions with file_list. Could either of you expand on this a bit? I’ve been struggling for hours with this due to my lack of php skills.
In the past I usedecho get_post(get_post_thumbnail_id())->post_excerpt;in my page template.
This is what I’ve been messing with below. Everything but the caption works. I’d really appreciate any help!function soth_output_gallery_file_list( $file_list_meta_key, $img_size ) { // Get the list of files $files = get_post_meta( get_the_ID(), $file_list_meta_key, 1 ); foreach ( (array) $files as $attachment_id => $attachment_url ) { echo '<div>'; echo wp_get_attachment_image( $attachment_id, $img_size ); echo '<p class="wp-caption-text">'; //what am I missing? echo $missingSomething->post_excerpt; echo '</p></div>'; } }Forum: Plugins
In reply to: [WP Featherlight - A Simple jQuery Lightbox] Captions not apprearingThanks for the quick response, Robert. That wasn’t it. I had text in the caption and description fields ready to go as well. I had just read about the alt text somewhere and thought that may have something to do with it.
I found WP Featherlight and this plugin don’t play nice together:
Cleaner Gallery
Version 1.1.0 | By Justin Tadlock
Replaces the default [gallery] shortcode with valid HTML5 markup and moves its inline styles to a proper stylesheet. Integrates with many Lightbox-type image scripts.I need it because it fixes another issue I was having with the WordPress gallery. I wish I knew how to make everything cooperate. This other lightbox that works doesn’t function nearly as well on mobile.