category pagination got broken suddenly
category pagination got broken suddenly
category pagination got broken suddenly
Latest comments from each category?
Try changing : $wp_query->query( array( ‘posts_per_page’ => get_option( ‘posts_per_page’ ), ‘paged’ => $paged ) ); to $wp_query->query( array( ‘category_name’ => ‘news’,’posts_per_page’ => get_option( ‘posts_per_page’ ), ‘paged’ => $paged ) ); You need to use slug, in this example “news” is the slug of the category.
the basic way is to #li.cat-item-7 { color: red; } Now, change ‘7’ to the number you want, as many times as you want and ‘red’ to the color you want for that category like – #li.cat-item-2 { color: pink; } #li.cat-item-8 { color: green; }
category url structure
Have you tried just deleting all the categories in Posts > Categories? When you delete a category, it only deletes the category and NOT the posts. All the posts will then default to uncategorized.
Two separate portfolio pages [closed]
Your question is actually pretty good, as you’ve found an edge case. The level (0-10) are still built into the roles system. So your custom role names collide with the built in capabilities. As role names get added as capability too, you should switch them to something more unique. Hint: Roles are a flat system. … Read more
It is absolutely not user friendly, but i have found it – after coding and reading 10-15 pages of plugin code that does exactly that. It is options in Screen Options slide-down menu (at the top of every screen). Keep that for future reference!
You’re always displaying the posts from the category “category1” because that’s what you’ve written in your code here $rPosts->query(‘showposts=4&category_name=category1′); If you want to just go to the category archive pages you can do that by generating the links with get_term_link. This function goes at the position where you’re displaying the links & then this code … Read more