Advertisement
travelsonsaddles

Untitled

Feb 1st, 2012
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.98 KB | None | 0 0
  1. from page.php
  2.  
  3. <?php if ( is_page('zapiski-moniki') ) {
  4. query_posts($query_string . '&cat=3');
  5. }<?php get_header(); ?>
  6.  
  7.     <?php if (weaver_is_checked_page_opt('ttw_hide_sidebars')) echo("<div id=\"container\" class=\"one-column container-page\">\n");
  8.     else echo("<div id=\"container\" class=\"container-page\">\n");
  9.    
  10.     get_template_part('pgtpl','container');
  11. ?>
  12.     </div><!-- #container -->
  13. <?php if (!weaver_is_checked_page_opt('ttw_hide_sidebars')) get_sidebar(); ?>
  14. <?php get_footer(); ?>
  15.  
  16. and index.php that works (except for is_page bit):
  17.  
  18. <?php if ( is_home() ) {
  19. query_posts($query_string . '&cat=-3');
  20. }
  21. ?><?php if ( is_page('zapiski-moniki') ) {
  22. query_posts($query_string . '&cat=3');
  23. }
  24. ?><?php
  25. /**
  26.  * The main template file.
  27.  *
  28.  * This is the most generic template file in a WordPress theme
  29.  * and one of the two required files for a theme (the other being style.css).
  30.  * It is used to display a page when nothing more specific matches a query.
  31.  * E.g., it puts together the home page when no home.php file exists.
  32.  * Learn more: http://codex.wordpress.org/Template_Hierarchy
  33.  *
  34.  */
  35. ?>
  36. <?php get_header(); ?>
  37.     <div id="container" class="container-index-loop">
  38.     <?php
  39.     weaver_put_wvr_widgetarea('sitewide-top-widget-area','ttw-site-top-widget');
  40.     weaver_put_wvr_widgetarea('top-widget-area','ttw-top-widget','ttw_hide_widg_posts');
  41.     weaver_put_perpage_widgetarea();
  42.     ?>
  43.         <div id="content" role="main">
  44.         <?php
  45.         /* Run the loop to output the posts.
  46.          * If you want to overload this in a child theme then include a file
  47.          * called loop-index.php and that will be used instead.
  48.          */
  49.         get_template_part( 'loop', 'index' );
  50.         ?>
  51.     </div><!-- #content -->
  52.         <?php weaver_put_wvr_widgetarea('bottom-widget-area','ttw-bot-widget','ttw_hide_widg_posts'); ?>
  53.     <?php weaver_put_wvr_widgetarea('sitewide-bottom-widget-area','ttw-site-bot-widget'); ?>
  54.         </div><!-- #container -->
  55.  
  56. <?php get_sidebar(); ?>
  57. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement