Tag Info

Hot answers tagged


The href attribute you are passing under the_post_thumbnail() is incorrect. Note that this attribute is applied to the img tag which obviously doesn't supports href attribute. It would be better to wrap the_post_thumbnail() with an <a> tag. So it will look something like the following: echo '<a href="' . get_permalink( $thumbnail->ID ) . ...


Try echo html_entity_decode($ccontent) .


Thanks to the tipoff from @birgire in the comment, I was able to locate two things, an example of an implementation that includes context, here (also of note is that the Github gist has code for the very useful ability to access any image uploaded from this context previously! https://gist.github.com/eduardozulian/4739075 /** * Example of inserting a ...


You can use add_image_size() function to create custom sized images. You only need to paste some piece of codes in your functions.php and then update the template files accordingly. For example : add_image_size( 'category-thumb', 300 ); // 300 pixels wide (and unlimited height) add_image_size( 'homepage-thumb', 220, 180, true ); // (cropped) And you ...

Only top voted, non community-wiki answers of a minimum length are eligible