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

How can I receive the image id using the media box?

You can also add in a filter that can add the ID as a html5 data attribute to the returned HTML fragment from send_to_editor. public function image_to_editor($html, $id, $caption, $title, $align, $url, $size, $alt){ $dom = new DOMDocument(); @$dom->loadHTML($html); $x = new DOMXPath($dom); foreach($x->query(“//img”) as $node){ $node->setAttribute(“data-id”, $id); } if($dom->getElementsByTagName(“a”)->length == 0){ $newHtml = $dom->saveXML($dom->getElementsByTagName(‘img’)->item(0)); … Read more

Theme currently showing thumbnails, how to show full size?

Here is the relevant code from home.php (the Blog Posts Index): <?php if($grisaillePostCount == 1) { the_post_thumbnail(); } else { the_post_thumbnail(‘following-post-thumbnails’); } ?> Here is the relevant code from index.php: <?php the_post_thumbnail(‘following-post-thumbnails’); ?> So, the difference is the default thumbnail size, and the custom ‘following-post-thumbnails’ image size. In functions.php, the Theme defines the defualt ‘thumbnail’ … Read more