How to hide / remove attachment “alt” or “caption” field in Admin?

The attachment_fields_to_editfunction returns an array variable called: $form_fields, which contains all the data. So as it is an array, we could make any of these operations in this link. There are some methods to delete an array element, including unset() method, which I think it’s the easy method to use. And to delete the caption … Read more

Unknow shortcode read on display site

That’s not an HTML tag, it’s a shortcode. If your theme used the the_excerpt() function for displaying the ‘compact version’ of the post content then this wouldn’t appear. WordPress strips shortcodes out of post excerpts to prevent this happening. If your theme is using its own method for generating the excerpt then its developer needs … Read more

how automatically show the image title before the image caption/description in a wordpress gallery?

use this code in single.php $post->ID, ‘post_type’ => ‘attachment’, ‘numberposts’ => -1, ‘orderby’ => ‘title’, ‘order’ => ‘ASC’, ‘post_mime_type’ => ‘image’, ))) { foreach( $images as $image ) { $attachmenturl = wp_get_attachment_url($image->ID); $attachmentimage = wp_get_attachment_image_src( $image->ID, full ); $imageDescription = apply_filters( ‘the_description’ , $image->post_content ); $imageTitle = apply_filters( ‘the_title’ , $image->post_title ); $i++; if (!empty($imageTitle)) … Read more