bac2
Forum Replies Created
Viewing 1 replies (of 1 total)
-
Forum: Plugins
In reply to: Page of posts in Thematic/Second To None themeSo far my page.php looks like this:
<?php //MODIFIED ?> <?php get_header() ?> <div id="container"> <div id="content"> <?php get_sidebar('page-top') ?> <?php //itm page12, cat3 //im page109, cat29 //it page10, cat4 //pm page89, cat25 //om page26, cat5 //res page6, cat6 $catID = 0; if (is_page('12')) { $catID=3; } elseif (is_page('109')) { $catID=29; } elseif (is_page('10')) { $catID=4; } elseif (is_page('89')) { $catID=25; } elseif (is_page('26')) { $catID=5; } elseif (is_page('6')) { $catID=6; } $showposts = -1; // -1 shows all posts $do_not_show_stickies = 1; // 0 to show stickies $args=array( 'category__in' => $catID, 'showposts' => $showposts, 'caller_get_posts' => $do_not_show_stickies ); $my_query = new WP_Query($args); ?> <?php the_post() ?> <div id="post-<?php the_ID(); ?>" class="<?php thematic_post_class() ?>"> <?php thematic_postheader(); ?> <div class="entry-content"> <?php the_content() ?> <?php wp_link_pages("\t\t\t\t\t<div class='page-link'>".__('Pages: ', 'thematic'), "</div>\n", 'number'); ?> <?php edit_post_link(__('Edit', 'thematic'),'<span class="edit-link">','</span>') ?> </div> </div><!-- .post --> <?php if ( get_post_custom_values('comments') ) thematic_comments_template() // Add a key+value of "comments" to enable comments on this page ?> <?php get_sidebar('page-bottom') ?> </div><!-- #content --> </div><!-- #container --> <?php thematic_sidebar() ?> <?php get_footer() ?>
Viewing 1 replies (of 1 total)