“Caption” vs. “Description”
-
This is a really nice plugin, thanks for taking the time to write and maintain it.
Using native WP galleries, I cannot get photonic to use the “description” field vs. the “caption” field (as seen in the WP media editor). If the “caption” is empty but the “description” is not, photonic will not display any content.
I believe this is because at line 127 of
Photonic_Native_Processoryou always use the caption:$photo_object['description'] = esc_attr($wp_details['caption']);If this is expected, perhaps the plugin can use the WordPress labels as seen in the media item library, where ‘caption’ is equivalent to the
post_excerptfield and ‘description’ is equivalent to thepost_content? (So the shortcodecaptionoptions might be “title-caption” or “caption”, etc?)This could also potentially be solved by calling
get_the_excerptusing the attachment ID, as WP would (in theory) look at thepost_captionfield first and if nothing was there automatically generate an excerpt from thepost_contentfield.
The topic ‘“Caption” vs. “Description”’ is closed to new replies.