CodeHQ

Archive for October, 2016

|

Echo thumbnail URL and size | WordPress

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: , , , ,
Posted in PHP, WordPress | No Comments »

Remove emoji code in header | WordPress

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: , , , ,
Posted in PHP, WordPress | No Comments »

Bottom of blog author template | WordPress

Tuesday, October 4th, 2016

Tags: , , , ,
Posted in PHP, WordPress | No Comments »