Advertisement
Guest User

Complete blog page template

a guest
Jun 8th, 2012
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Ame Home Blog
  4. */
  5. ?>
  6. <?php get_header(); ?>
  7. <div id="pageTitle">
  8. <h1><?php the_title(); ?></h1>
  9. </div>
  10. <!-- begin colLeft -->
  11. <div class="activities">
  12. <div class="activities_menu">
  13. <h2 style="padding-left: 10px;"><a href="#">Amsterdam Marketing Event</a></h2>
  14. <?php //wp_nav_menu(array('menu' => 'vereniging-menu'));
  15. if ( function_exists( 'wp_nav_menu' ) ){
  16. wp_nav_menu( array( 'theme_location' => 'ame-menu', 'container_id' => 'leftMenu', 'menu_class'=>'left-menu', 'fallback_cb'=>'mainmenu') );
  17. }
  18. ?>
  19. </div>
  20.  
  21. </div>
  22. <div id="colLeft">
  23. <!--<h1><?php the_title(); ?></h1> -->
  24. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  25.  
  26. <?php the_content(__('(more...)')); ?>
  27.  
  28. <?php endwhile; else: ?>
  29. <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
  30. <?php endif; ?>
  31.  
  32. <div class="blog-wrap">
  33. <p style="font-size:14px;">Laatste AME Nieuws</p>
  34. <!--<h1><?php the_title(); ?></h1> -->
  35. <?php //rewind_posts(); ?>
  36. <?php query_posts(array ( 'category_name' => 'ame', 'posts_per_page' => 3 )); ?>
  37. <?php if (have_posts()) {
  38. while (have_posts()) {
  39. ?>
  40. <div class="blog-message">
  41. <p style="font-size:14px;"><b><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></b></p>
  42. <div style="float: left; padding-right: 10px; padding-bottom: 10px;"><?php print the_post_thumbnail(); ?></div>
  43. <?php
  44.  
  45. the_post();
  46. the_excerpt();
  47. //get_template_part( 'content', get_post_format() );
  48. //the_content(__('(more...)'));
  49. ?>
  50.  
  51. <p><a href="<?php the_permalink(); ?>">lees meer >> </a></p>
  52. <div class="clear"></div>
  53. </div>
  54. <?php
  55.  
  56. }
  57. } else {
  58. ?>
  59. <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
  60. <?php } ?>
  61. </div>
  62. </div>
  63. <!-- end colleft -->
  64.  
  65.  
  66.  
  67. <?php get_footer('ame'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement