Advertisement
Guest User

Untitled

a guest
Sep 1st, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: blog page
  4. */
  5. $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  6. get_header();
  7. ?>
  8. <div class="page">
  9. <div class="wrapper contentpage">
  10.  
  11. <div id="content-header-cat-new" class="content-header oneByOne_item_cat">
  12. <div class="bg-image-container loto"></div>
  13.  
  14.  
  15. <h4 class="animated animate1"><?= get_post_meta(get_the_ID(), "second_title", true); ?></h4>
  16. <p class="animated animate2"><?= get_post_meta(get_the_ID(), "second_description", true); ?></p>
  17.  
  18. <div class="bread-crambs border ">
  19. <div class="overlay blue-bg radius"></div>
  20. <?php
  21. if (function_exists('yoast_breadcrumb')) {
  22. yoast_breadcrumb('<div class="bread-crambs-content">', '</div>');
  23. }
  24. ?>
  25.  
  26.  
  27. </div>
  28. <div class="clear"></div>
  29. </div>
  30. <?php get_sidebar(); ?>
  31. <div class="sep"></div>
  32. <div id="page-content-bg" class="float page-content">
  33. <h1><?php the_title(); ?></h1>
  34.  
  35. <?php
  36. // WP_Query arguments
  37. $args = array(
  38. 'cat' => '6',
  39. 'posts_per_page' => '5',
  40. 'paged' => $paged
  41. );
  42.  
  43. // The Query
  44. query_posts($args);
  45.  
  46. // The Loop
  47. while ( have_posts() ) : the_post(); ?>
  48. <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  49. <div id="text-area-blog"><a href="<?php the_permalink(); ?>"><?php the_excerpt(); ?></a></div>
  50. <div id="readmore"><a href="<?php the_permalink(); ?>">קרא עוד..</a></div>
  51. <div id="tags-style"><?php the_tags(); ?></div>
  52. <div id="hr-div"></div>
  53. <?php
  54. endwhile;
  55. ?><!--pagination --><div class="pagin"><?php
  56. next_posts_link( 'הקודם>>' );
  57. previous_posts_link( '<<הבא' );
  58. // Restore original Post Data
  59. ?></div>
  60. <!-- page orel -->
  61.  
  62.  
  63. <span style = "display:inline-block;padding-right:20px">
  64.  
  65.  
  66. </span>
  67. </div>
  68. <div class="clear"></div>
  69. </div>
  70. </div>
  71.  
  72. <?php
  73. get_footer();
  74. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement