How to include a picture in a blog post such that it will show in Facebook?

You can add meta data, embedded between the <head> tags in the html of your blog post, to tell Facebook exactly what information to show when that content is shared. Here are the main meta tags Facebook uses: <!– Facebook Open Graph meta data –> <meta property=”og:title” content=”Title Here” /> <meta property=”og:type” content=”article” /> <meta … Read more

Images in the Twenty Fourteen theme

Well, that was… interesting. In a nutshell there seem to be two things in play here: max_posts set to 6 in add_theme_support( ‘featured-content’ quantity set to default 6 in Featured_Content class quantity defines how many posts there are, but can be no larger than max_posts. However while result can be pushed down by changing max_posts … Read more

Post taxonomy from exif data

Retrieving attachment image EXIF data As “a plugin” won’t help later visitors, let’s start off with how to retrieve that: # Get the post ID: Use one of the following. Preferred is the API function get_the_ID() # $GLOBALS[‘post’]->ID; # global $post; $post->ID; # get_the_ID(); $meta = wp_get_attachment_metadata( get_the_ID(), false ); # Fetch the EXIF data … Read more

Custom image sizes only for thumbnails

https://github.com/crstauf/WordPress-FeaturedImage-SpecialImageSize try this out; wrote it myself a long time ago. I do have an updated version, coming out soon. let me know if you’ve any questions. as requested, relevant code for functions.php of your theme: // `post_type` => array(width,height,crop) $featimg_sizes = array( ‘post’ => array(50,20,false) ); add_action(‘wp_ajax_set-post-thumbnail’,’generate_featimg_size’,1); function generate_featimg_size() { global $featimg_sizes; $thumbnail_id = … Read more