Support » Plugin: WP-Filters » [Plugin: WP-Filters] How do I use this?

  • I’m trying to follow the instructions here: http://gobanana.ca/wp-filters

    It says I should wrap my posts in a post wrapper and then assign each post to a class like this:

    <div id="postswrapper">
    <div id="post-1" class="post category-1 category-2 category-3">[Post content here]</div>
    <div id="post-2" class="post category-3 category-4 category-1">[Post content here]</div>
    <div id="post-3" class="post category-7 category-a category-5">[Post content here]</div>
    <div id="post-4" class="post category-1 category-2 category-3">[Post content here]</div>
    </div>

    So in [post content here] I need to place what exactly…

    Sorry for the noob question.

    http://wordpress.org/extend/plugins/wp-filters/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author gobanana

    (@gobanana)

    Hi alxvallejo,

    Can you post the actual code you’re using in your templates and I’ll help guide you through that?

    Thread Starter alxvallejo

    (@alxvallejo)

    Let’s say I wanted to add the filters to my index.php on my Twenty Eleven theme:

    <div id="primary">
    			<div id="content" role="main">
    			<?php if ( have_posts() ) : ?>
    				<?php twentyeleven_content_nav( 'nav-above' ); ?>
    				<?php /* Start the Loop */ ?>
    				<?php while ( have_posts() ) : the_post(); ?>
    					<?php get_template_part( 'content', get_post_format() ); ?>
    				<?php endwhile; ?>

    Or am I looking at the wrong file?

    Plugin Author gobanana

    (@gobanana)

    That’s the correct file and the posts will already be output in the right format.

    All you need to is add this code to where you want the filters to show up.
    <?php filters_generate(); ?>

    For example:

    <div id="primary">
    			<div id="content" role="main">
    			<?php if ( have_posts() ) : ?>
    				<?php twentyeleven_content_nav( 'nav-above' ); ?>
    				<?php filters_generate(); ?>
    				<?php /* Start the Loop */ ?>
    				<?php while ( have_posts() ) : the_post(); ?>
    					<?php get_template_part( 'content', get_post_format() ); ?>
    				<?php endwhile; ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP-Filters] How do I use this?’ is closed to new replies.