Vassilis Mastorostergios
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to loop through categories and change their URLs?I figured it out, it’s pretty simple and you use the get_categories() function
<?php $categories = get_categories( array('taxonomy' => 'country') ); ?> <?php foreach ( $categories as $category ) : ?> <li><?php bloginfo('url'); ?>/?nomoi=<?php echo $tax_nomos; ?>&country=<?php echo $category->category_nicename; ?></li> <?php endforeach; ?>
Forum: Themes and Templates
In reply to: Custom filter from custom taxonomiesI’m looking on how to implement exactly this, anyone has any idea?
Forum: Fixing WordPress
In reply to: How to Dynamically Combine Multiple Taxonomies?Anyone?
Forum: Fixing WordPress
In reply to: How do I change icons (bullets, calendar, author, etc)?Sorry, I think that code actually displays the fourth icon ??
1st icon : no background-position change
2nd icon : -16px
3rd icon : -32px
4th icon : -48px.. etc
You get the point
Forum: Fixing WordPress
In reply to: How do I change icons (bullets, calendar, author, etc)?Check your .CSS, if all icons are in one gif (one icon under the other) he is using the background-position: class in CSS to display whatever icon he wants.
For example: If you have ten 16×16 icons then the icons.gif should be of 16px width and 160px height.
Say you want to display the third icon, the CSS will look something like this:
#icon { background: url(..images/icons.gif) no-repeat; background-position: 0 -48px; }
Hope that helps
Bah, still haven’t figured it out, any ideas? I think it’s a simple “for” command but I’m a PHP noob
any help?
Minor corrections: “where $=” I mean where X= 1, 2, 3 etc
and “and wrap the<div id="testXcontent"><div class="accordion_child">..posts..</div>
around the actual posts of each category.”Also, only the first category should have the class “header_highlights” but if thats to difficult it can be skipped.
Any thoughts on how to do this? Thanks in advance!