Title: ivanbarlog's Replies | WordPress.org

---

# ivanbarlog

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WordPress cannot install plugins](https://wordpress.org/support/topic/wordpress-cannot-install-plugins/)
 *  Thread Starter [ivanbarlog](https://wordpress.org/support/users/ivanbarlog/)
 * (@ivanbarlog)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/wordpress-cannot-install-plugins/#post-6165884)
 * Are you sure that this is secure?
    I can see my wp-config.php in wp-admin’s editor.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Use get_categories() in function.php](https://wordpress.org/support/topic/use-get_categories-in-functionphp/)
 *  Thread Starter [ivanbarlog](https://wordpress.org/support/users/ivanbarlog/)
 * (@ivanbarlog)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/use-get_categories-in-functionphp/#post-4304170)
 * I am sorry, it is working.
    I forget echo it … Shame on me
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [List posts in categories and subcategories with pagination](https://wordpress.org/support/topic/list-posts-in-categories-and-subcategories-with-pagination/)
 *  Thread Starter [ivanbarlog](https://wordpress.org/support/users/ivanbarlog/)
 * (@ivanbarlog)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/list-posts-in-categories-and-subcategories-with-pagination/#post-4302295)
 * I found error.
 * There should be ‘cat’ instead of ‘category’ in this snippet:
 * `$args = array( 'posts_per_page' => 5, 'category' => $id, 'paged' => get_query_var('
   paged' ) );`
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [List posts in categories and subcategories with pagination](https://wordpress.org/support/topic/list-posts-in-categories-and-subcategories-with-pagination/)
 *  Thread Starter [ivanbarlog](https://wordpress.org/support/users/ivanbarlog/)
 * (@ivanbarlog)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/list-posts-in-categories-and-subcategories-with-pagination/#post-4302293)
 * It working here [http://milan.barlog.sk/category/prirodou-spisa/](http://milan.barlog.sk/category/prirodou-spisa/)
 * But I want to differentiate between categories and subcategories.
 * Eg. in previous link might be 6 posts. I change paging to 5 posts per page so
   on first page might be 5 posts and on second might be 1. Instead there are all
   posts from all categories.
 * category.php -> [http://pastebin.com/wEmLDi2x](http://pastebin.com/wEmLDi2x)
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [List posts in categories and subcategories with pagination](https://wordpress.org/support/topic/list-posts-in-categories-and-subcategories-with-pagination/)
 *  Thread Starter [ivanbarlog](https://wordpress.org/support/users/ivanbarlog/)
 * (@ivanbarlog)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/list-posts-in-categories-and-subcategories-with-pagination/#post-4302290)
 * These links does not seem to show at all…
 *     ```
       <?php previous_posts_link( __('« prev'), $query->max_num_posts ); ?>
       <?php next_posts_link(  __('next »'), $query->max_num_posts ); ?>
       ```
   
 * Maybe there is some little error somewhere but I didnt see it.
 * EDIT:
    Now it is working. I dont know why but it does.
 * Thank you for help.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [List posts in categories and subcategories with pagination](https://wordpress.org/support/topic/list-posts-in-categories-and-subcategories-with-pagination/)
 *  Thread Starter [ivanbarlog](https://wordpress.org/support/users/ivanbarlog/)
 * (@ivanbarlog)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/list-posts-in-categories-and-subcategories-with-pagination/#post-4302275)
 * Could you please check the edited code at [http://pastebin.com/7rKHS7Rs](http://pastebin.com/7rKHS7Rs)
 * Again, posts are listed by 2 on one page but pagination doesnt working.
 * Any idea?

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