Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: blog page
- */
- $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
- get_header();
- ?>
- <div class="page">
- <div class="wrapper contentpage">
- <div id="content-header-cat-new" class="content-header oneByOne_item_cat">
- <div class="bg-image-container loto"></div>
- <h4 class="animated animate1"><?= get_post_meta(get_the_ID(), "second_title", true); ?></h4>
- <p class="animated animate2"><?= get_post_meta(get_the_ID(), "second_description", true); ?></p>
- <div class="bread-crambs border ">
- <div class="overlay blue-bg radius"></div>
- <?php
- if (function_exists('yoast_breadcrumb')) {
- yoast_breadcrumb('<div class="bread-crambs-content">', '</div>');
- }
- ?>
- </div>
- <div class="clear"></div>
- </div>
- <?php get_sidebar(); ?>
- <div class="sep"></div>
- <div id="page-content-bg" class="float page-content">
- <h1><?php the_title(); ?></h1>
- <?php
- // WP_Query arguments
- $args = array(
- 'cat' => '6',
- 'posts_per_page' => '5',
- 'paged' => $paged
- );
- // The Query
- query_posts($args);
- // The Loop
- while ( have_posts() ) : the_post(); ?>
- <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
- <div id="text-area-blog"><a href="<?php the_permalink(); ?>"><?php the_excerpt(); ?></a></div>
- <div id="readmore"><a href="<?php the_permalink(); ?>">קרא עוד..</a></div>
- <div id="tags-style"><?php the_tags(); ?></div>
- <div id="hr-div"></div>
- <?php
- endwhile;
- ?><!--pagination --><div class="pagin"><?php
- next_posts_link( 'הקודם>>' );
- previous_posts_link( '<<הבא' );
- // Restore original Post Data
- ?></div>
- <!-- page orel -->
- <span style = "display:inline-block;padding-right:20px">
- </span>
- </div>
- <div class="clear"></div>
- </div>
- </div>
- <?php
- get_footer();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement