Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • xpobar

    (@xpobar)

    Possibly, this may help someone else??

    I created two categories: myCatOne and myCatTwo, these categories were then applied to the relevant posts.

    Then I duplicated the template for the blog ‘page-blog_template’ and added the following code.

    <!--CUSTOM PAGE HEADER ENDS-->
    
      <?php  
    
           $args = array(
    	'category'         => 'myCatOne',
    	'category_name'    => 'myCatOne',
    	'exclude'          => 'myCatTwo',
                         'post_type' => 'post',
                         'posts_per_page' => '');
          $the_query = new WP_Query( $args );
       ?>
    
        <div class="lay4">
            <div class="center">
    
                <div class="lay4_wrap<?php if ( !is_active_sidebar( 'sidebar' ) ) { ?> no_sidebar<?php } ?>">
                    <div class="lay4_inner">
    
                          <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
                          <div <?php post_class(); ?> id="post-<?php the_ID(); ?>"> 
    
                    <!--POST THUMBNAIL START-->

    In the original template, use the same code, but swap over the ‘myCatOne’ and ‘myCatTwo’ values

    xpobar

    (@xpobar)

    Did you ever manage to find a way to do this?

    The layout for category layout is quite different, so I can’t use this method.

    I’m using Optimizer.

    Thanks

    x

Viewing 2 replies - 1 through 2 (of 2 total)