hi all. i kinda need the same..
This post is ment to be a suggestion for upcoming versions.
i need to extend the li-elements with an ID= for my supercool javascript i’m planning to bring into the wordpress world (hehe) ??
We, as developers, should be able to have BEFORE / AFTER on all ouput-returning-functions, and just get the really plain unformatted data returned from the builtin functions.
i kinda feel limited actually but otoh havin alot plans for my next theme. But.. i cant make them become reality without start hacking WP itself.
Sure, i could just stfu and start hacking as much as i need (hell, its open source), but i would like to share my work after some time.
i think the common list functions (all output functions) need to be extended. As for older-themes compatibility make li-element default, while making it possible to edited them.
pages output actually is
<li id=page_item><a href=..>Some page</a></li>
why? .. i would prefer output like,:
<a href=..>Some page</a>
and be able to make function calls like
list_pages('before="» "', '<br />');
I know i could recreate all this by CSS, but if i need to know each element of a list i need to give them IDs. Furthermore, most of the time i need to css-mod basic HTML elements like ol,li,ul just to get a plain link list w/o indents.
thats not smart in my opinion. if wordpress would like to grow it must become more flexible in the future (with these particular functions). hardcoded design elements are a strict no-no.
btw.. some plugin coders also really should check a) validation and b) never put fixed styles into their source..
regards, m3nt0r.