How do I set a specific size for my image?

Use Add_image_size in your functions.php function theme_sizes(){ add_image_size( ‘custom-size’, 800, 600); } in your code above use something like: wp_get_attachment_image( 42, ‘custom-size’ ); Add_image_size adds a new option when you upload an image, which will then crop the image to the dimensions you need, so you would have thumbnail, medium, full size and your custom-size

Customizing individual images on posts

The best answer I had was to add a &nbsp in the function callback html at the end of the section tag. This forced the curser out of section wrapper in the WYSIWIG of WordPress. It’s not the perfect fix but it worked. function html5_insert_image($html, $id, $caption, $title, $alt, $align, $url) { $url = wp_get_attachment_url($id); … Read more

Cant pull in featured Image

You won’t get anything back from your template simply because the loop returns what is in the main query object for that specific page. To see what is actually in the main query object, you should do var_dump( $wp_query ); outside the loop. To display custom content on a page template, you will need to … Read more