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

Recreate the upload folder from a website without having access to the backend/cpanel/filezilla directly from the website

You don’t mention what your user privileges are – are you an admin, editor, author, etc? An admin-level should be able to install plugins via Plugins, Add New. Most new-to-WP people don’t realize that access to the folder structure (via cPanel or FTP) is not needed to admin the site. Any installation of themes/plugins is … Read more

How to generate alt attributes with php / filters?

Maybe not the best solution, but did it like this: function add_alt_tags($content) { global $post; $content = str_replace(‘alt=””‘, ‘alt=”‘.$post->post_title .'”‘, $content); return $content; } add_filter(‘the_content’, ‘add_alt_tags’, 100);