WordPress Tags Cheat List

Below are my most used tags that works both main and single templates within a loop.


<?php

echo '

//Displays the post link
<a href="'.get_permalink().'">Link</a>

//Displays the post featured image
<img src="'.wp_get_attachment_url( get_post_thumbnail_id() ).'">

//Displays post title
'.get_the_title().'

//Displays post date
'.get_the_date().'

//Displays a formatted date, click here for the PHP date syntax format characters
'.the_time('F').'

//Displays post date
'.apply_filters('the_content',$post->post_content).'

//Displays post ID
'.get_the_ID().'

//Displays post author
'.get_the_author().'

//Displays the category of the post
'.the_category().'

';

?>

*This page may update anytime, probably new tags will be added or removed tags that has been deprecated.