How to make link_after DYNAMIC?
-
Hi there once again! ??
<?php wp_list_pages('link_after=<span>- This is an additional text</span>'); ?>
The code above creates the full list of pages with links and there’s an additional <span> next to each link, so it looks like that:
- PAGE 1 – This is an additional text
- PAGE 2 – This is an additional text
- PAGE 3 – This is an additional text
How to make it more dynamic?
I’d love to have something like:
- PAGE 1 – Additional text
- PAGE 2 – Totally different additional text
- PAGE 3 – And once again totally different text
Any helping hand? ??
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to make link_after DYNAMIC?’ is closed to new replies.