Tagged Questions
0
votes
1answer
461 views
Change ul class=“children” for wp_list_pages?
Hello I'm using this code to print a list of Pages and Subpages:
<ul>
<?php wp_list_pages('title_li=&depth=2&child_of='); ?>
</ul>
It outputs:
<ul>
...
1
vote
1answer
97 views
List all-childpages on parent-page AND list child-pages on childpage itself but not the current one?
I have the following function that lists all Child-Pages of a page.
function show_subpages() {
global $post;
$subpages = wp_list_pages( array(
'echo' =>0,
...
2
votes
1answer
103 views
Manipulate Output of wp_list_something: select menu instead of li's
I'm working on a responsive webdesign where my navigation should swap into a select-menu when resizing the window in smaller sizes.
Is it somehow possible to add another param to functions like ...
0
votes
1answer
151 views
How to apply the 'current_page_item' class to an archive page in `wp_list_pages()`?
So I have the following custom wp-query working on my site:
function custom_front_page($wp_query){
if($wp_query->get('page_id')==get_option('page_on_front')){
...