Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • jan.uetz

    (@januetz)

    Thank you! That took care of it – perfect! ??

    jan.uetz

    (@januetz)

    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. 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.

    jan.uetz

    (@januetz)

    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!

    jan.uetz

    (@januetz)

    It seems, as if the plugin simply doesn’t find the media library.
    Any help would be greatly appreciated.

    jan.uetz

    (@januetz)

    Same problem here

    jan.uetz

    (@januetz)

    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!

    jan.uetz

    (@januetz)

    Hi!
    I’m having the same problem. Please check out the page: https://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)