andymike
Forum Replies Created
-
Forum: Themes and Templates
In reply to: How to alternate background colors of comments posted on blog?Another quick way of accomplishing alternating comments:
<ul> <?php $i = 0; ?> <?php foreach ($comments as $comment) : ?> <?php $i++; ?> <li id="comment-<?php comment_ID() ?>"<?php if($i&1) { echo 'class="odd"';} else {echo 'class="even"';} ?>>
Then just use CSS to define your “odd” and “even” classes.
Forum: Plugins
In reply to: Too Many QueriesThanks muelheim,
Could you explain a little bit further how to build the sql-query?
I appreciate your help.
Forum: Themes and Templates
In reply to: Site’s HTML Spacing lost with WPI am having the same exact problem as he pointed out in the long description.
Is there a solution. I consider this a bug, I would appreciate if someone could report it to the tracker.
Forum: Fixing WordPress
In reply to: Remove Sidebar Link Bullets?You are looking for CSS styling, you need to insert a div around that list and add this to it’s properties:
list-style: none;
If you are confused by this do some googling for “css” or “list styling”
Forum: Fixing WordPress
In reply to: Will This Break WordPress?Figured out a solution:
If you are going to use it as a CMS with a couple categories, like the example I am giving just create Page Templates that query the posts from the specific category:
<?php query_posts(‘cat=2’); ?>
put that before the loop, and then use all the same template tags you would use if you were creating a custom category page. Then you can use links to these Pages without the /category/ because they will be Pages.
This is only useful if you are linking to your categories from a “static” navigation menu. If you are linking to the categories dynamically with a Template Tag WP will use the /category/ in the link.
Hope this helps someone.
Forum: Fixing WordPress
In reply to: relative URLSI wrote a tutorial on this issue:
Forum: Fixing WordPress
In reply to: Will This Break WordPress?Can anyone tell me if this will have implications, like possibly breaking WP in the future?
You can see a live demo of this by going here:
https://www.freelovemd.com/section/ask-lovemd/
and
https://www.freelovemd.com/ask-lovemd/
both work fine. So I would like to change it permanently to the second one, but I am worried it will cause problems in the future.
Anyone?
Forum: Fixing WordPress
In reply to: Will This Break WordPress?No I haven’t changed that, and I am running 2.0.5
Forum: Fixing WordPress
In reply to: Will This Break WordPress?My permalink structure is :
/%category%/%postname%/
Is that why this works?
I just don’t want to worry about it getting screwed up later.
Forum: Fixing WordPress
In reply to: How to remove the “category” folderOne thing that works for me is this:
Leave the category base alone.
When you are linking to the category in your navigation just make the link:
mysite.com/mycategory
instead of
mysite.com/category/mycategory
The category still works fine and displays how you want it. The only problem would be if you had a page with the same name as your category. If not I can’t find any conflicts.
Obviously doesn’t work if you are using a template tag to display the links to your categories.
Let me know if you find any conflicts with this method.
Forum: Fixing WordPress
In reply to: Category specific archiveI am looking for this same functionality. Anyone find any plugins to accomplish this?
Forum: Fixing WordPress
In reply to: Convert A Local WordPress XAMPP Installation Into A Live SiteFixed, sorry about that.
Forum: Themes and Templates
In reply to: Help! Using WP with my own site design…Using CSS is your best bet. It will benefit your site tremendously in the long run. Start searching for some basic tutorials or even go to the bookstore. I would recommend Stylin With CSS by Wyke-Smith.
Forum: Themes and Templates
In reply to: Help! Using WP with my own site design…That’s funny I wrote a similar article two days ago:
Forum: Your WordPress
In reply to: Converted To WP – Feedback AppreciatedThanks for the kind words.
Hopefully as more categories are added the empty sidebar will begin to fill up.