SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | switch_to_blog(10); | |
3 | $category_id = get_cat_ID(single_cat_title( '', false )); | |
4 | $limit = get_option('posts_per_page'); | |
5 | $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
6 | $category_id = get_cat_ID(single_cat_title( '', false )); | |
7 | query_posts( array( 'cat' => $category_id, 'paged'=>$paged, 'showposts'=> $limit) ); | |
8 | ||
9 | if ( have_posts() ) : while ( have_posts() ) : the_post(); | |
10 | ?> | |
11 | ||
12 | <div class="Post"> | |
13 | <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> | |
14 | <?php the_content("Read More <span class=\"hidden\">about " . the_title('', '</span>', false)); ?> | |
15 | ||
16 | </div> | |
17 | <?php | |
18 | ||
19 | endwhile; | |
20 | ?> | |
21 | <!-- Page Navigation --> | |
22 | <?php restore_current_blog();?> | |
23 | <?php | |
24 | $prev= get_previous_posts_link('Newer'); | |
25 | $prev = str_replace("Button","",$prev); | |
26 | $prev = str_replace("/tags/","/",$prev); | |
27 | ||
28 | $next= get_next_posts_link('Older'); | |
29 | $next = str_replace("Button","",$next); | |
30 | $next = str_replace("/tags/","/",$next); | |
31 | ||
32 | $prev2 = get_previous_posts_link('>'); | |
33 | $prev2 = str_replace("/tags/","/",$prev2); | |
34 | ||
35 | $next2 = get_next_posts_link('<'); | |
36 | $next2 = str_replace("/tags/","/",$next2); | |
37 | ||
38 | ?> | |
39 | ||
40 | <div class="Pager"> | |
41 | <div class="Previous"><?php echo $next2;?> <?php echo $next;?></div> | |
42 | <div class="Next"><?php echo $prev;?> <?php echo $prev2;?></div> | |
43 | </div> | |
44 | <?php | |
45 | endif; | |
46 | wp_reset_query(); | |
47 | - | //restore_current_blog();?> |
47 | + | restore_current_blog();?> |