[wp_link_pages] Getting five random pages
-
Hi,
I’m using a self-made theme for my wordpress and I want to list five random pages instead of all pages and I thought of starting with this:
<?php wp_list_pages(‘child_of=135&title_li=&orderby=rand()’); ?>
But it doesn’t seem to work, I thought this code would show all my pages of category 135 randomly each time but it doesn’t.
What I want is first to get five pages instead of all subpages of page nr 135 and I want to see five different page links each time I visit my website.
Anyone knows how to do this?
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘[wp_link_pages] Getting five random pages’ is closed to new replies.