Sivar
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Category Count INSIDE Category List?There you go! I prefer cash. ??
Forum: Themes and Templates
In reply to: Show all categories and post numbersYou are looking for wp_list_categories.
Forum: Installing WordPress
In reply to: List posts in specific category (including child categories)Use
query_posts
and as category parameter just set the main category. It will also display posts, which are just in subcategories. It works for me, that is ;).Forum: Fixing WordPress
In reply to: Need to set up 2 styles of linksThe hover wouldn’t work in either case, because it’s not correct to define some
.class:pseudoclass
(at least, it didn’t work for me). What you might try instead, is to give a class to a wrapping element of the"a"
. If it’s a headline, it could be like this:<h2 class="brown"><a [...]> ... </a></h2>
and then in your css:
.brown a { ... } .brown a:hover { ... } .brown a img { ... }
Forum: Themes and Templates
In reply to: Additional Styling to Category ListFor the count-in-the-link-issue, here’s the solution.
OT. Is there a good reason why the total needs to be in a link?
Yes. If you usedisplay:block
for the links (i.e. to get a nice hover which styles the entire line), a seperate line for the post-count is very annoying. I was really surprised to see thatwp_list_categories
(resp.walker_category
) doesn’t include it in the link by default.Forum: Plugins
In reply to: Need Help!!!Your plugin-directory is
/wp-content/plugins/
… you’ll find it in your wordpress installation directory. Plugins usually consist just of one .php file, which has to be copied to that directory and will then appear in your wordpress admin panel under “Plugins” where you can activate them.And next time, plz don’t start more than one thread for one question, and don’t use unspecific titles like this, as both is unnecessary and considered bad manners. ??
Forum: Fixing WordPress
In reply to: multiple category loops on home pageForum: Themes and Templates
In reply to: wp_list_categories problems with display in sidebar. need helpYou didn’t delete the if-statement at the place where it was before. But I guess I didn’t explain it properly, sorry :).
So don’t just copy it, but also delete the original one. Just to clearify… by if-statement, i mean the following:
if ( isset($show_count) && $show_count ) $link .= ' (' . intval($category->category_count) . ')';
Forum: Themes and Templates
In reply to: Sidebar color changeThat depends on what colors you want to change… background, text, links, hovers. Just backup your style.css and start experimenting with the colors in there… learning by doing always served me well :).
Forum: Themes and Templates
In reply to: wp_list_categories problems with display in sidebar. need helpYour zip isn’t very helpful, as it contains no core files ;).
Open your classes.php and look for this in the class Walker_Category:
if ( isset($show_count) && $show_count ) $link .= ' (' . intval($category->category_count) . ')';
Copy these 2 lines from where they are and look for the following:
$link .= apply_filters('list_cats', $category->cat_name, $category).'</a>';
Maybe that line is just
$link .= $catname.'</a>';
, but either way you have to split it up and insert the if-statement i mentioned above. In the end, it will look like:$link .= $cat_name; // (or that one with apply_filters('..') if ( isset($show_count) && $show_count ) $link .= ' (' . intval($category->category_count) . ')'; $link .= '</a>';
Be done ;). But please, backup your classes.php in case you mess it up *g*. And can anyone tell me, why the backticks don’t work with blockquote here?
Forum: Plugins
In reply to: All other posts for the month the post was writtenWhile in the Loop, you can assign month and year of your post to variables:
<?php $month = the_time('m'); $year = the_time('Y'); ?>
AFTER that, use
query_posts()
to retrieve other posts from the displayed post’s month/year.The header has to be called in your templates such as index.php, home.php, and so on. Here’s an overview.
Forum: Themes and Templates
In reply to: BR CLEAR=ALL tag not working correctly on FireFoxThen put every post into a div-container… the containers wouldn’t even require styling. Just don’t use that
break=all
.Forum: Themes and Templates
In reply to: BR CLEAR=ALL tag not working correctly on FireFoxI don’t see any reason for
clear=all
, maybe you should just remove it. As it is now, it works as expected, taking the following content to a height below all the other elements (in your case#l_sidebar
and#r_sidebar
).@diane:
clear=all
is html (and not very useful since css, I might add).Forum: Fixing WordPress
In reply to: Odd formatting issue, text sliding off the page to the left???Check this out, and concentrate on the errors caused by ul, ol, li and a for now. Once you have eliminated these, we can continue troubleshooting :).
Btw, I don’t see a thing wrong in Win/IE6.