Title: jan.uetz's Replies | WordPress.org

---

# jan.uetz

  [  ](https://wordpress.org/support/users/januetz/)

 *   [Profile](https://wordpress.org/support/users/januetz/)
 *   [Topics Started](https://wordpress.org/support/users/januetz/topics/)
 *   [Replies Created](https://wordpress.org/support/users/januetz/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/januetz/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/januetz/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/januetz/engagements/)
 *   [Favorites](https://wordpress.org/support/users/januetz/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Posts in Page] Category code pulling all blog posts](https://wordpress.org/support/topic/category-code-pulling-all-blog-posts/)
 *  [jan.uetz](https://wordpress.org/support/users/januetz/)
 * (@januetz)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/category-code-pulling-all-blog-posts/#post-3450040)
 * Thank you! That took care of it – perfect! 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Posts in Page] Category code pulling all blog posts](https://wordpress.org/support/topic/category-code-pulling-all-blog-posts/)
 *  [jan.uetz](https://wordpress.org/support/users/januetz/)
 * (@januetz)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/category-code-pulling-all-blog-posts/#post-3450038)
 * Hi!
    thanks for your reply.
 * Here are my answers:
    1. it’s in the root folder of the theme (and it is obviously
   found by the plugin, as the design changes, but then also shows all categories
   instead of only “publications”0 2. Here’s the code:
 *     ```
       <?php
       if ( ! defined( 'ABSPATH' ) ) exit;
       /**
        * Template Name: Blog
        *
        * The blog page template displays the "blog-style" template on a sub-page.
        *
        * @package WooFramework
        * @subpackage Template
        */
   
        global $woo_options;
        get_header();
   
       /**
        * The Variables
        *
        * Setup default variables, overriding them if the "Theme Options" have been saved.
        */
   
       	$settings = array(
       					'thumb_w' => 100,
       					'thumb_h' => 100,
       					'thumb_align' => 'alignleft'
       					);
   
       	$settings = woo_get_dynamic_values( $settings );
       ?>
           <!-- #content Starts -->
           <div id="content" class="col-full">
   
               <?php woo_main_before(); ?>
   
               <section id="main" class="col-left">       
   
       		<?php woo_loop_before(); ?>
   
               <?php
               	if ( get_query_var( 'paged') ) { $paged = get_query_var( 'paged' ); } elseif ( get_query_var( 'page') ) { $paged = get_query_var( 'page' ); } else { $paged = 1; }
   
               	$query_args = array(
               						'post_type' => 'post',
               						'paged' => $paged
               					);
   
               	$query_args = apply_filters( 'woo_blog_template_query_args', $query_args ); // Do not remove. Used to exclude categories from displaying here.
   
               	remove_filter( 'pre_get_posts', 'woo_exclude_categories_homepage' );
   
               	query_posts( $query_args );
   
               	if ( have_posts() ) {
               		$count = 0;
               		while ( have_posts() ) { the_post(); $count++;
   
       					/* Include the Post-Format-specific template for the content.
       					 * If you want to overload this in a child theme then include a file
       					 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
       					 */
       					get_template_part( 'content', get_post_format() );
   
               		} // End WHILE Loop
   
               	} else {
               ?>
                   <article <?php post_class(); ?>>
                       <p><?php _e( 'Sorry, no posts matched your criteria.', 'woothemes' ); ?></p>
                   </article><!-- /.post -->
               <?php } // End IF Statement ?> 
   
               <?php woo_loop_after(); ?> 
   
               <?php woo_pagenav(); ?>
       		<?php wp_reset_query(); ?>                
   
               </section><!-- /#main -->
   
               <?php woo_main_after(); ?>
   
       		<?php get_sidebar(); ?>
   
           </div><!-- /#content -->    
   
       <?php get_footer(); ?>
       ```
   
 * _[Please post code or markup between backticks or use the code button. Or better
   still – use a [pastebin](http://pastebin.com/). Your posted code may now have
   been permanently damaged/corrupted by the forum’s parser.]_
 * 3. Yes, if I delete the template=’template-blog.php’ then it pulls in the correct
   category only!
 * Thanks for your help and any ideas you might have.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Posts in Page] Category code pulling all blog posts](https://wordpress.org/support/topic/category-code-pulling-all-blog-posts/)
 *  [jan.uetz](https://wordpress.org/support/users/januetz/)
 * (@januetz)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/category-code-pulling-all-blog-posts/#post-3450036)
 * Hi Eric,
 * I’ve tried to further sort this out with the suggestion you made regarding changing
   the output template. While I am now getting the styling I want (from the theme),
   the plugin is now again outputting all posts and not only the ones from the category
   I’ve designated.
 * Here’s my code: [ic_add_posts template=’template-blog.php’ category=’publications’]
   
   Any idea why it won’t show only the ‘publications’ but all post categories?
 * I appreciate your help!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Custom Fields (ACF®)] Media Library Problem](https://wordpress.org/support/topic/media-library-problem-7/)
 *  [jan.uetz](https://wordpress.org/support/users/januetz/)
 * (@januetz)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/media-library-problem-7/#post-3471051)
 * It seems, as if the plugin simply doesn’t find the media library.
    Any help would
   be greatly appreciated.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Custom Fields (ACF®)] Media Library Problem](https://wordpress.org/support/topic/media-library-problem-7/)
 *  [jan.uetz](https://wordpress.org/support/users/januetz/)
 * (@januetz)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/media-library-problem-7/#post-3471049)
 * Same problem here
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Posts in Page] Category code pulling all blog posts](https://wordpress.org/support/topic/category-code-pulling-all-blog-posts/)
 *  [jan.uetz](https://wordpress.org/support/users/januetz/)
 * (@januetz)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/category-code-pulling-all-blog-posts/#post-3450026)
 * Hi Eric,
 * Thank you for your reply. I realized the problem is a different one. If the page
   is using the default page template, then the shortcode works, however, I had 
   the page set to the blog template. I like the layout of blog page better, so 
   now I just need to revamp that.
 * thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Posts in Page] Category code pulling all blog posts](https://wordpress.org/support/topic/category-code-pulling-all-blog-posts/)
 *  [jan.uetz](https://wordpress.org/support/users/januetz/)
 * (@januetz)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/category-code-pulling-all-blog-posts/#post-3450024)
 * Hi!
    I’m having the same problem. Please check out the page: [http://www.trestlegroup.com/publications/](http://www.trestlegroup.com/publications/)
 * I’m using the following short code: [ic_add_posts category=’publications’ showposts
   =’2′]
    yet it’s pulling in all posts of various categories and not limiting the
   number of posts shown. Any ideas?
 * Thanks for your feedback – greatly appreciate the help.

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