I build the paging, with the function previous_posts_link and next_posts_links. And oups! Can’t target the to resulting links with css. 2 choices…
1) Wrap in useless element just for design purpose… Results in poor semantic xhtml.
2) Make change directly in wp-include/link-templates.php… Realy bad for futur update
3) Create new function and use it… Result in lot of code duplication and no so better for future update.
And it’s like that everywhere in WordPress.
And this bring me to a conclusion… WordPress “choose” for us how to display everything and offer really little flexibility when we goes out of the box. It’s seems evident (probably because I’m used to work with Symfony) that each and every function who output something must accept an additional array parameters for id, class, rel, title…
- The topic ‘Missing the ability to pass class (or id, or title) to function’ is closed to new replies.