Title: [Plugin: Posts per Cat] after pagnation?
Last modified: August 19, 2016

---

# [Plugin: Posts per Cat] after pagnation?

 *  [deepbevel](https://wordpress.org/support/users/deepbevel/)
 * (@deepbevel)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-posts-per-cat-after-pagnation/)
 * I tried to insert the code but I don’t have anything in my index file called “
   pagnation” so I have no idea where to insert the code. And so of course it didn’t
   work. How about a sample of where the code goes so non-php savy users can try
   this out?
    thanks
 * [http://wordpress.org/extend/plugins/posts-per-cat/](http://wordpress.org/extend/plugins/posts-per-cat/)

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

 *  Plugin Author [Aleksandar Urošević](https://wordpress.org/support/users/urkekg/)
 * (@urkekg)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-posts-per-cat-after-pagnation/#post-1841681)
 * Maybe too late answer, but can help someone.
 * Pagination is part in template where we got links to navigate to previous/next
   page. For example, in TwentyTen theme for Main Index (index.php) we have this
   part of code:
 *     ```
       get_template_part( 'loop', 'index' );
       			?>
       			</div><!-- #content -->
       		</div><!-- #container -->
       ```
   
 * Now, we put `<?php do_action("ppc"); ?>` right before `</div><!-- #content --
   >` to enable Posts per Cat, and got something like this:
 *     ```
       get_template_part( 'loop', 'index' );
       			?>
       <?php do_action("ppc"); ?>
       			</div><!-- #content -->
       		</div><!-- #container -->
       ```
   
 *  [globalreporter](https://wordpress.org/support/users/globalreporter/)
 * (@globalreporter)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-per-cat-after-pagnation/#post-1841707)
 * Hi,
 * I am not an html and php expert. have many files called “index” and in none of
   them I find the string of code you mention. Could you please tell me the exact
   parent and sub-parent folders that include the index file you are talking about?
 * Thanks
 * Stefano
 *  Plugin Author [Aleksandar Urošević](https://wordpress.org/support/users/urkekg/)
 * (@urkekg)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-per-cat-after-pagnation/#post-1841708)
 * You need to look for index.php in your template (theme) directory. Look for line
   with `</div><!-- #content -->` (line 48 in Twenty Eleven theme) and put before
   this code (in line 47) this part of code:
 * `<?php do_action("ppc"); ?>`
 * Correct path is **/wp-content/themes/_<themename>_/index.php**
 *  [globalreporter](https://wordpress.org/support/users/globalreporter/)
 * (@globalreporter)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-per-cat-after-pagnation/#post-1841709)
 * Thanks for your answer that unfortunately doesn’t help me. my theme is called“
   bombax” and inside the theme’s folder there is just one file called index.php
   where there is not even a line of code: it’s totally empty! Maybe I need to look
   into another file?
 *  Plugin Author [Aleksandar Urošević](https://wordpress.org/support/users/urkekg/)
 * (@urkekg)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-per-cat-after-pagnation/#post-1841710)
 * Bobmax theme uses **home.php** as index, so put do_action code before `</div>
   <!--/content-->` in line 14.
 *  [globalreporter](https://wordpress.org/support/users/globalreporter/)
 * (@globalreporter)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-per-cat-after-pagnation/#post-1841711)
 * Did it, but it still doesn’t work.
    Please look at my homephp code and tell me
   if it’s right:
 * <?php get_header();?>
 * <div id=”main” class=”wrap”>
 * <div id=”mainwrap”>
 * <div id=”content”>
 * <div id=”contentpad”>
 * <div id=”contentwrap”>
 * <?php itx_loop();?>
    <?php do_action(“ppc”); ?>
 * </div>
 * <div class=”clear”></div>
 * <div id=”navi”>
 *  <?php wp_pagenavi();?>
 * </div>
 * </div>
 * </div> <!–/content–>
 * <?php itx_sidebar(‘name=sidebar&pos=left’);itx_sidebar(‘name=sidebar&pos=right’);?
   >
 * </div>
 * </div> <!–/main–>
 * <?php get_footer(); ?>
 *  Plugin Author [Aleksandar Urošević](https://wordpress.org/support/users/urkekg/)
 * (@urkekg)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-per-cat-after-pagnation/#post-1841712)
 * No, no, that is not good. Here is correct code:
 *     ```
       <?php get_header();?>
       <div id="main" class="wrap">
       <div id="mainwrap">
       <div id="content">
       <div id="contentpad">
       <div id="contentwrap">
       <?php itx_loop();?>
       </div>
       <div class="clear"></div>
       <div id="navi">
       <?php wp_pagenavi();?>
       </div>
       </div>
       <?php do_action("ppc"); ?>
       </div> <!--/content-->
       <?php itx_sidebar('name=sidebar&pos=left');itx_sidebar('name=sidebar&pos=right');?>
       </div>
       </div> <!--/main-->
       <?php get_footer(); ?>
       ```
   
 * PPC will be placed after pagination on the bottom of content part.
 *  [globalreporter](https://wordpress.org/support/users/globalreporter/)
 * (@globalreporter)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-per-cat-after-pagnation/#post-1841713)
 * I pasted the code as you write it, but now the content is displayed at the bottom
   of my sidbar. It’s a mess. I really dont know what’s wrong!
 *  [globalreporter](https://wordpress.org/support/users/globalreporter/)
 * (@globalreporter)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-per-cat-after-pagnation/#post-1841714)
 * could you please send me the link to a wordpress blog that uses your plugin? 
   I would like to see how it looks like
 *  Plugin Author [Aleksandar Urošević](https://wordpress.org/support/users/urkekg/)
 * (@urkekg)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-per-cat-after-pagnation/#post-1841715)
 * Maybe PPC is not compatibile with Bobmax theme, who knows?
 * I only know that PPC is used on blogs [http://www.myhonestanswer.com/previous-advice/](http://www.myhonestanswer.com/previous-advice/)
   and [http://www.enfants-spectacle.com/](http://www.enfants-spectacle.com/)
 *  [globalreporter](https://wordpress.org/support/users/globalreporter/)
 * (@globalreporter)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-per-cat-after-pagnation/#post-1841716)
 * Very weird. Anyway, it’s a pity. I really need a plugin like yours. I need to
   organize posts in my pages in a customized way. Do you know other plugins that
   could help me out?
 *  Plugin Author [Aleksandar Urošević](https://wordpress.org/support/users/urkekg/)
 * (@urkekg)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-per-cat-after-pagnation/#post-1841717)
 * Sorry, I don’t know. Try to search [http://wordpress.org/extend/plugins/](http://wordpress.org/extend/plugins/)
   and maybe you get sometging usefull?

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

The topic ‘[Plugin: Posts per Cat] after pagnation?’ is closed to new replies.

 * ![](https://ps.w.org/posts-per-cat/assets/icon.svg?rev=989433)
 * [Posts per Cat](https://wordpress.org/plugins/posts-per-cat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/posts-per-cat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/posts-per-cat/)
 * [Active Topics](https://wordpress.org/support/plugin/posts-per-cat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/posts-per-cat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/posts-per-cat/reviews/)

 * 12 replies
 * 3 participants
 * Last reply from: [Aleksandar Urošević](https://wordpress.org/support/users/urkekg/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-posts-per-cat-after-pagnation/#post-1841717)
 * Status: not resolved