Add links to wp_list_pages
-
Hi all!
In my index I have a link list like this:
INFO
— Description
— Where we are
— ContactsUsing “wp_list_pages(‘sort_column=menu_order&title_li=&child_of=2’);” I print the needed links:
a href="https://www.sitename.com/?page_id=2"
Now, what I need is to add a link before the page id. Something like this:
a href="https://www.sitename.com/PAGENAME.PHP?page_id=2
What should I do?… I tried with:
$page_output = wp_list_pages('sort_column=menu_order&title_li=&child_of=2'); str_replace('href=\"', 'href=\"https://www.sitename.com/PAGENAME.PHP', $page_output); echo $page_output;
but it don’t works…
Could you please help me out? Thank you so much in advance and sorry for my bad english but I’m italian!! ??
Zam
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Add links to wp_list_pages’ is closed to new replies.