01. Show post author link:
<?php the_author(); ?>

02. Show post link:
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>

03. Show post content:
<?php the_content(); ?>

04. Show edit post link:
<?php edit_post_link(); ?>

05. Show the next/previous link:
<?php next_posts_link( 'Older Entries' ); ?>
<?php previous_posts_link( 'Newer Entries' ); ?>

06.Comments pop-up link
<?php comments_popup_link( 'Leave a Comment', '1 Comment', '% Comments' ); ?>

To make dynamic all items-images,extra css, js etc
<?php echo get_template_directory_uri();?>
Or 
<?php bloginfo('template_url'); ?>

07.Code for show Blog name:
<?php bloginfo('name'); ?>

08. Description for Blog:
<?php bloginfo('description'); ?>

09. The title of your Blog:
<?php wp_title(); ?>

10. Code for stylesheet linking:
<?php bloginfo('stylesheet_url'); ?>

11. Code for pingback url:
<?php bloginfo('pingback_url'); ?>

12. Code for theme location:
<?php bloginfo('template_url'); ?>

13. Code for Wordpress version:
<?php bloginfo('version'); ?>

14. Atom feed link:
<?php bloginfo('atom_url'); ?>

15. RSS2 feed link:
<?php bloginfo('rss2_url'); ?>

16.url of your website:
<?php bloginfo('url'); ?>

17. Declaring for html type code:
<?php bloginfo('html_type'); ?>

18. Code for Charset Set:
<?php bloginfo('charset'); ?>

19. if statement for post find/search:
<?php if(have_posts()) : ?>

20. while statement:
<?php while(have_posts()) : the_post(); ?>

21. End while statement:
<?php endwhile; ?>

22. End if statement:
<?php endif; ?>

23. To get header.php
<?php get_header(); ?>

24.To get sidebar.php
<?php get_sidebar(); ?>

25. To get footer.php
<?php get_footer(); ?>

26. To get time and date
<?php the_time('m-d-y') ?>

27. To get pop-up comment's link
<?php comments_popup_link(); ?>

28. Permanent link for you post/page
<?php the_permalink() ?>

29. Show category >>code
<?php the_category(', ') ?>

30. ID for post/page
<?php the_ID(); ?>

31. For post link
<?php edit_post_link(); ?>

32. list for link
<?php get_links_list(); ?>

33. Call for comment template
<?php comments_template(); ?>

34. Site page list
<?php wp_list_pages(); ?>

35. Site category list
<?php wp_list_cats(); ?>

36. Get default calendar
<?php get_calendar(); ?>

37.Get archive
<?php wp_get_archives() ?>

38. Navigation link for post
<?php posts_nav_link(); ?>

39. To call another page loop.php
<?php get_template_part( 'loop' );?> 
Categories: ,
Back To Top