-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive.php
More file actions
38 lines (30 loc) · 890 Bytes
/
Copy patharchive.php
File metadata and controls
38 lines (30 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/*
Template Name: Stran za arhive
*/
?>
<?php get_header('home'); ?>
<!-- archive.php v2 -->
<!-- LOOP -->
<?php
global $post, $wpdb, $my_query, $paged, $wp_query; // brez tega ne dela get_post_meta
global $myNumberOfPosts;
$myNumberOfPosts = 20;
$myCoverStoriesNum = 10;
//$my_loop_args = array('category__not_in' => array(3902), 'cat' => '-3902', 'posts_per_page' => 12, 'posts_per_archive_page' => 12, 'paged' => get_query_var('paged'));
//$myCurrentLoop = new WP_Query($my_loop_args);
$args = array_merge(
$wp_query->query,
array(
'category__not_in' => array(3902),
'posts_per_page' => $myNumberOfPosts,
'posts_per_archive_page' => $myNumberOfPosts,
'paged' => get_query_var('paged')
)
);
$myCurrentLoop = new WP_Query($args);
?>
<!-- LOOP x-->
<div id="main" class="clearfix levodesnopadding">
<?php require('loop-articles.php'); ?>
<?php get_footer(); ?>