ivanbarlog
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WordPress cannot install pluginsAre you sure that this is secure?
I can see my wp-config.php in wp-admin’s editor.Forum: Themes and Templates
In reply to: Use get_categories() in function.phpI am sorry, it is working.
I forget echo it … Shame on meForum: Themes and Templates
In reply to: List posts in categories and subcategories with paginationI 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
In reply to: List posts in categories and subcategories with paginationIt working here 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
Forum: Themes and Templates
In reply to: List posts in categories and subcategories with paginationThese 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
In reply to: List posts in categories and subcategories with paginationCould you please check the edited code at http://pastebin.com/7rKHS7Rs
Again, posts are listed by 2 on one page but pagination doesnt working.
Any idea?