Add instructions to featured image

WordPress has a hook for that. Here is a sample code: function featured_image_dimensions( $content, $post_id, $thumbnail_id ){ $help_text=”<p>” . __( ‘recommended dimensions – H980px by W450px’, ‘my_domain’ ) . ‘</p>’; return $help_text . $content; } add_filter( ‘admin_post_thumbnail_html’, ‘featured_image_dimensions’, 10, 3 ); Add this code to your functions.php and you should be good to go.

custom image dimensions (for gallery)

You can call add_image_size in your functions.php: add_image_size( ‘medium’, 240, 160, true ); Reference here: http://codex.wordpress.org/Function_Reference/add_image_size

JavaScript and images files are not recognized

You need to give the full path to your theme files. To get the URL of your theme, use the WordPress function bloginfo( ‘template_directory’ ); so at a minimum you would need: <script src=”https://wordpress.stackexchange.com/questions/18828/<?php bloginfo(“template_directory’ ) ?>/jquery.js” type=”text/javascript”></script> However, scripts / styles should really be “enqueued” using wp_enqueue_script(); (see http://codex.wordpress.org/Function_Reference/wp_enqueue_script) I would recommend taking a … Read more

Images not working using Featured post

I believe there are some root-links that you haven’t changed. Please follow these steps Login to admin section www.xyz.com/wp-admin Navigate to settings->general-> and change the ‘Site Address (URL)’ and ‘WordPress Address (URL)’. Also please check the permalinks and settings->media there is an upload directory and the default wordpress location is wp-content/uploads, check if it is … Read more

Can I the caption shortcode to set caption to a data attribute, and with the image’s alignment intact?

Basically the img_caption_shortcode filter allows you to completely replace the default image caption. If you want to do that, you’ll need to ask WP to pass all the argument of the filter to your callback function. <?php add_filter(‘img_caption_shortcode’, ‘wpse81532_caption’, 10, 3 /* three args */); Then your callback will need to take care of all … Read more

Problem with loading images from child theme CSS file with relevant path

There’s no need for the wp-content/themes path – both themes sit in the same directory, so you can just traverse up one and then back down to child theme: background-image: url(../child-theme-name/images/some-image.png); Update: Regarding your answer to “where is the CSS file stored”, you inferred that the stylesheet resides in the child theme folder – in … Read more

Bulk image rotation

Yes, this is a known problem between ios devices and WordPress. It’s a real issue due to the high numbers of iPhone/ipad users who also use WordPress, and I’m surprised it hasn’t been addressed in the WordPress core. Looks like it’s still being debated/ worked on here. It’s a question that’s been asked before here. … Read more