Advertisement
alchymyth

proef reverse query

Oct 24th, 2011
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html <?php language_attributes(); ?>>
  3. <head>
  4. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  5. <title>
  6.  
  7. <?php
  8.  
  9. global $page, $paged;
  10.  
  11. wp_title( '|', true, 'right' );
  12.  
  13. bloginfo( 'name' );
  14.  
  15. $site_description = get_bloginfo( 'description', 'display' );
  16. if ( $site_description && ( is_home() || is_front_page() ) )
  17. echo " | $site_description";
  18.  
  19. if ( $paged >= 2 || $page >= 2 )
  20. echo ' | ' . sprintf( __( 'Page %s', '' ), max( $paged, $page ) );
  21.  
  22. ?>
  23. </title>
  24.  
  25. <link rel="profile" href="http://gmpg.org/xfn/11" />
  26. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
  27. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  28. <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/jquery/jquery-1.6.3.js"></script>
  29. <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/functions.js"></script>
  30.  
  31.  
  32. <?php wp_head();?>
  33.  
  34. </head>
  35.  
  36. <body <?php body_class(); ?> onLoad="windowResize();" onResize="windowResize();">
  37. <!--<?php wp_list_categories(); ?>-->
  38. <div id="wrapper">
  39.  
  40. <div id="brand"></div>
  41.  
  42. <div id="designer">
  43. design by <a style="color:#fff; text-decoration:none;" href="http://lauradesign.nl" target="_blank">LauraDesign</a>
  44. </div>
  45.  
  46. <a href="http://lauradesign.nl/goeileven"><div id="logo"></div></a>
  47.  
  48.  
  49.  
  50. <div id="navigation">
  51. <a href="beleef">beleef</a>
  52. <a href="geniet">geniet</a>
  53. <a href="verwen">verwen</a>
  54. <a href="ervaar">ervaar</a>
  55. <a href="vier">vier</a>
  56. <a href="vind" class="last">vind</a>
  57. </div>
  58.  
  59. <div id="news">
  60. <a href="geproeft">Geproeft</a>
  61. <a href="proef">Proef</a>
  62.  
  63. <?php
  64.  
  65. $reversed_post = new WP_Query("category_name=proef&showposts=1&order=ASC");
  66.  
  67. while($reversed_post->have_posts()):$reversed_post->the_post();
  68. ?>
  69.  
  70. <div id="news-content">
  71. <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
  72.  
  73. <div id="news-entry">
  74. <?php the_excerpt(); ?>
  75. </div>
  76.  
  77. <?php endwhile; wp_reset_postdata(); ?>
  78.  
  79. </div>
  80.  
  81. </div>
  82.  
  83.  
  84.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement