Return custom value instead of title with wp_list_pages
-
Hi, here’s what I’m trying to accomplish:
Right now I have a super simple listing of pages in my sidebar.
<?php wp_list_pages('&title_li=<a href="/whatever" title=Title Here">Overview</a>&child_of=44' ); ?>
These pages all have a few custom fields, such as short_title and long_title.
I want it to return a list that looks like this (bear with me):
<li><a href="https://whatever..." title="value of long_title">value of short_title</a></li>
Is this even possible? If you could point me in the direction of an example, that would be great, but I haven’t found any that match (maybe I’m searching on the wrong terms).
Thanks!
- The topic ‘Return custom value instead of title with wp_list_pages’ is closed to new replies.