Auto-generating HTML is eeeevil.
First, I’d like to say that I’m very impressed with the latest version of WordPress and I’m looking forward to using it on my website.
The one thing I’m not impressed with, however, is the template system; specifically, the template tags that automatically generate HTML output. In roughly 5 minutes of thinking about how I wanted to use a simple design of mine with WordPress, I realized how severly limiting the system can actually be.
For instance, I want a bar near the top of my pages listing all of the “WordPress Pages” horizontally, separated by a “/”. (example image)
The HTML (combined with CSS, of course) I use to achieve the “etched” look is as follows:
page 1 /
page 2 /
<a href="...">page 1</a> /
<a href="...">page 2</a> /
<a href="...">page 3</a>
Unfortunately, this doesn’t seem at all possible with the
wp_list_pages()function. It’s the same with the various other
wp_list_*()functions. Sure, I could use CSS to make the
litags inline, and force the link color of the “shadow” text to not change when hovered over, but… there’s no way to “glue” the items together as in my image.
If I’ve missed something, and there’s an easy enough way to do what I want, please let me know. I’m proficient in PHP, so hacking out my own solution isn’t beyond me, but I’d rather not turn a web design project into a web development project.
At the very least I think the
wp_list_*()functions need the following parameters:
item_glue. These would allow for maximum customizability without the need for a containing loop.
In the meantime… I would greatly appreciate any suggestions anyone might have.
- The topic ‘Auto-generating HTML is eeeevil.’ is closed to new replies.