wp_list_pages: set unique ID on list-items wrap list-items inside span
-
The title says it briefly.
Is it possible to use the wp_list_pages/wp_list_cats-tag and set an unique ID to each of the list-items?
Maybe I can use the custom fields on pages and slug on the cats?
If so I don’t know how I shall use them..My other question is;
How can I wrap each list-item (once again wp_list_pages/wp_list_cats) inside a span, or how can I wrap a span round the list-item-text, but inside the list ;Ohere’s one example:
<ul class="page"> <li class="page_item current_page_item" id="unique1"><span><a href="#">Home</a></span> <li class="page_item" id="unique2"><span><a href="#">About</a></span> </ul>
The reason why I’m wondering this is because I want to use pictures as links, but at the same time use text-links, so that a search engine would find my text-links.. the text-links just won’t be displayed in the browser..
I’d be very thankfull if someone could help me! ;D
- The topic ‘wp_list_pages: set unique ID on list-items wrap list-items inside span’ is closed to new replies.