New answers tagged

0

Gallery Image Captions - Hide/Show I just recalled this caption toggle question, when I was writing this answer, so let me rewrite it a little bit to work for this question. Let's introduce the caption_toggle attribute for the native gallery shortcode, that takes a comma separated string of bool values. It's possible to hide the captions with CSS, but ...


1

You simply need to pass $attachment_id instead of get_post_thumbnail_id() in echo get_post(get_post_thumbnail_id())->post_excerpt; with wptexturize to prevent your markup from breaking other things. Update: As @birgire suggested I think it is better to use get_post_field() instead of directly accessing post property. Updated code:- function ...


0

I've tested this in WP 4.5 with the default author role and this issue doesn't seem to exist anymore. My findings: 1 As an author you cannot edit media properties directly. 2 As an author you can edit media properties when you are inserting an image in a post. This will cause the image to be included with an alt tag containing the edit, but the edit will ...



Top 50 recent answers are included