Monday, October 24th, 2016
Use the PHP in the query below – and then the HTML example below to echo the URL out.
the_post_thumbnail_url(); // without parameter -> 'post-thumbnail'
the_post_thumbnail_url( 'thumbnail' ); // Thumbnail (default 150px x 150px max)
the_post_thumbnail_url( 'medium' ); // Medium resolution (default 300px x 300px max)
the_post_thumbnail_url( 'large' ); // Large resolution (default 640px x 640px max)
the_post_thumbnail_url( 'full' ); // Full resolution (original size uploaded)
the_post_thumbnail_url( array(100, 100) ); // Other resolutions
Tags: Echo, Query, Thumbnail, URL, WordPress
Posted in PHP, WordPress | No Comments »
Thursday, October 6th, 2016
Add to functions.php
// REMOVE WP EMOJI
remove_action('wp_head', 'print_emoji_detection_script', 7);
remove_action('wp_print_styles', 'print_emoji_styles');
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'admin_print_styles', 'print_emoji_styles' );
Tags: Emoji code, Functions, Header, PHP, WordPress
Posted in PHP, WordPress | No Comments »