J
J
John2016-05-10 11:40:01
PHP
John, 2016-05-10 11:40:01

Writing permalink pages to an array?

How can I write permalinks of Wordpress pages to an array? (For example, I have 5 pages in total and I need to get an array with permanent links to these pages).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Kozlov, 2016-05-10
@trampick

If I were you, I would create a menu and add items there with the mouse - very convenient.
via the wp_nav_menu() function would get an array of links
https://developer.wordpress.org/reference/function...
This function has a parameter to return an array.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question