WordPress Template Tags

<?php the_title() ?> …………………Displays the posts/pages title
<?php the_content() ?> …………Displays the content of the post/page
<?php the_excerpt() ?> ….Displays the excerpt of the current post/page
<?php the_time() ?> ……….Displays the time of the current post/page
<?php the_date() ?> …..Displays the date of a post or set of post/page
<?php the_permalink() ?> ………….Displays the URL for the permalink
<?php the_category() ?> ……………..Displays the category of a post
<?php the_author(); ?> ………………Displays the author of the post
<?php the_ID(); ?> ……….Displays the numeric ID of the current post
<?php wp_list_pages(); ?> ……………………Displays all the pages
<?php wp_tag_cloud(); ?> ………………………Displays a tag cloud
<?php wp_list_cats(); ?> ……………………Displays the categories
<?php get_calendar(); ?> ……………………..Displays the calendar
<?php wp_get_archives() ?> ……….Displays a date-based archives list
<?php posts_nav_link(); ?> …Displays Previous page and Next Page links
<?php next_post_link() ?> …………………Displays Newer Posts link
<?php previous_post_link() ?> ………………..Displays previous link
<?php edit_post_link(__(‘Edit Post’)); ?> ……..Displays the edit link
<?php the_search_query();?> …………….Value for search form
<?php wp_register();?> …………….Displays the register link
<?php wp_loginout();?> …………..Displays the log in/out link
<?php wp_meta();?> …………………..Meta for administrators
<?php timer_stop(1);?> …………………Time to load the page
<?php echo c2c_custom(‘test’);?> …… Displays the custom field1
<?php get_links_list(); ?> ………..Display links from Blogroll
<?php get_calendar(); ?> ……….Displays the built-in calendar
<?php comments_popup_link(); ?> …….Link of the posts comments

Share This:

Leave a Reply

Your email address will not be published. Required fields are marked *