Advertisement
asadsuman

Basic coder for all wordpress template

Mar 20th, 2014
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. <!--------------------------------------wordpress basic coder for all template--------------------------------------------------------->
  2. <!--------------------css,js,images daynamic----------------------------------->
  3. <?php echo get_template_directory_uri();?>
  4. <!---------------------------------head,footer------------------------------------>
  5. <?php get_header();?>
  6. <?php get_footer();?>
  7. <!----------------------------post loop--------------------------------------------->
  8. <?php if(have_posts()) : ?>
  9. <?php while (have_posts()) : the_post(); ?>
  10.  
  11. <!-- Your Post Query here -->
  12. /*You must be write post in div for easily styling.Here I write our post info, post content,everythings about post .*/
  13. <?php endwhile; ?>
  14. <?php endif; ?>
  15. <!-------------------------------some code using in post loop------------------------------------------>
  16. <?php get_template_part('file_name'); ?>/*call for slider or another file*/
  17. <?php the_title();?>/*post title*/
  18. <?php the_content();?>/*post content*/
  19. <?php the_category(', '); ?> /*post in which category*/
  20. <?php the_time('M d, Y') ?> /*post on*/
  21. <?php the_permalink(); ?> /*post permalink*/
  22. <?php the_excerpt(); ?> /*post summary*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement