This function displays a list of WordPress Pages as links. It is often used to customize the Sidebar or Header, but may be used in other Templates as well.

learn more… | top users | synonyms

2
votes
3answers
31 views

How to get a list of all recently published child pages?

Can you please help me on how can I display a list <li> of newly published child pages. I've been looking on google how to use display it using the wp_list_pages(); but can't find out there. I ...
0
votes
0answers
11 views

Add class of wp_list_page

I have this php that display all the child pages of a specific page now i want to change and add some class on the listing. this is the php code i use. <?php wp_list_pages( array('child_of' ...
0
votes
0answers
29 views

WordPress Page Walker class descendants of parent with thumbnail and custom classes

Please, help! I'm at my wits end and have to finish this by tomorrow, so I would REALLY appreciate any help with adjusting this page walker class. (Please!) The ultimate goal is to display a list in ...
0
votes
0answers
22 views

How to edit dynamically made php nav bar

I am trying to edit the sidebar of a page with css, but am unsure on how to do so because of the way it was made. I am a newbie to wordpress, so I'm not sure how this snippet of code is creating the ...
0
votes
0answers
36 views

HowTo preserve page hierarchy with wp_list_pages()?

I have created a dynamic way of displaying "sub-menu-items" using the built-in function wp_list_pages(). However I'm stuck with the hierarchy of the pages displayed because of the sort_column doesn't ...
0
votes
3answers
54 views

Sort and display pages with specific custom field (not tag)

What I need basically is to display child pages on a parent. But I want to split the list of childs to, lets say, 'important' and 'non-important' to display it at the beginning and at the end of a ...
0
votes
0answers
39 views

How to display data with pagaination on backend?

I am new with WordPress development so I have no idea how to do this functionality with WordPress. I got one task to display some data from database and have to display records with pagination(Just ...
1
vote
1answer
101 views

How to List All Pages (With their template names) Within a Website

I'm starting work on a legacy site, that has gotten quite messy. We'd sure like to clean things up. The site has 3914 page entries and with 27 different page templates. I kid you not. One thing ...
0
votes
1answer
44 views

Why is wp_list_pages altering $post->ID of the page?

So I have a template that is used for all pages in a section that has this script to create a menu based off children: <?php if($post->ID = 142) { $children = ...
0
votes
1answer
83 views

Dynamic menu wp_list_pages displaying only current branch including: current page, his siblings and its childs

I'm trying to build a sidebar menu displaying child pages of a grandparent page, his siblings and their childs, and keep those siblings and childs available while navigating through them. I've been ...
0
votes
0answers
14 views

Editing WP Plugin

I have a plugin that will has a dropdown box to select a post, but I want to change it so that it will select a page. Here is the original code. What do i need to change? <?php function ...
0
votes
0answers
20 views

Format Specific Link in wp_list_pages

I am implementing a custom walker for wp_list_pages. I would like to implement the following logic inside the walker: IF PageID=X THEN use output A IF PagID=Y THEN use output B. The code of my ...
0
votes
1answer
119 views

Using wp_list_pages to create 2 lists of pages and include and exclude some of them depending on their category

I would like to create 2 lists of pages and include and exclude some of them depending on their category. In the following example, I have my 2 lists. A list of promoted pages and a list for the rest. ...
1
vote
1answer
36 views

List pages to show only Whitelisted sub pages

In my custom theme I want to show all parent pages but for a few of those parent pages I don't want to show their subpages. I know you can add all these subpages to the 'exclude' argument of the ...
0
votes
3answers
81 views

Custom Post Type Name Causing Problem

Please ignore my poor English. I have custom post type (order). and its working like charm, But default post type (pages) list are not displaying in wp-admin side. You can see More information in ...
0
votes
0answers
18 views

dispaly page order with page name in custom post template

Hi i am building a custom template to show the list of pages names with link to the page, do we have any chance to show its parent and its menu order. by using wp_list_pages
0
votes
0answers
29 views

Auto-build First Instance of Menu from Page Structure

I am wondering if there is a way to build a custom menu that is initially populated by the current page structure. I am working on a site that was initially build pre-custom menus, but now we want to ...
0
votes
0answers
82 views

wp_list_pages show all pages in sitemap

I am trying to list the pages of my site but actually list them all. I can use wp_list_pages(); However I have a custom post type "services" with archive false. I also have a page named services ...
0
votes
1answer
117 views

WP List Pages - Add Title Attributes to Anchors

Using the default wp_list_pages() is there an easy way / filter to add title attribute to the anchors? Right now it just spits out the anchor with no title attribute but I would like to add it on ...
0
votes
0answers
47 views

How to show custom post type in page hierarchy?

Is it possible to show a list of pages with a custom post type included in that list if it's parent is a page? So if I was using the query more specifically something like get_pages(), ...
7
votes
4answers
306 views

How can I hide children of draft pages using wp_list_pages()?

I'm displaying a simple sitemap with wp_list_pages(); $args = array( 'sort_column' => 'menu_order', 'title_li' => '', 'post_status' => 'publish' ); wp_list_pages( $args ); ...
0
votes
1answer
33 views

Wordpress get_pages sub nav show current page

I'm using get_pages in Wordpress to create a sub nav on a page. I know I can use wp_list_pages but I wanted to control the links at different screen sizes in bootstrap. Using this sort of code is it ...
1
vote
2answers
301 views

Change Parent Name with wp_list_pages?

I use the following line in a code which outputs subpages and a parent. This code outputs the name of the parent page. I would like to replace this with the word "Overview." How do I achieve this in ...
0
votes
0answers
76 views

Showing anchor links in sidebar for headings only on a certain page

I want to be able to add anchor links to header ids in one of my WordPress pages, and then show links to those ids in the sidebar. The sidebar is built like this in content-page.php: <?php ...
0
votes
1answer
84 views

Subpages List Appearing on Every Page

This code displays the parent page and a list of its subpages, but not the grandparent page. (It is the second red menu in the left sidebar here). There is one problem with this. This code outputs a ...
0
votes
0answers
93 views

How to slidedown and slideup child pages clicking on parent pages in jquery or javascript?

I have created a sidebar in wordpress in which all parent pages with subpages are listed. I have used following code in sidebar-left.php file and call this in template file. <div id="primary" ...
0
votes
0answers
113 views

Wordpress list child pages of custom post type

Im stuck on this and any help would be appreciated. Say there is a parent page called "Stuff". And Stuff has several pages under it. Stuff more stuff more stuff1 more stuff2 It has no children ...
0
votes
0answers
80 views

Change class name in Wordpress wp_list_page nav

I'm using Wordpress's wp_list_pages to display a nav of pages on the site. Some pages have children so I need a dropdown menu below those links. The html is something like this <ul class=""> ...
0
votes
2answers
28 views

Pages inside a page (with thumbnails)

I´m building a actors/movies sites and I got stuck with one thing. I have several pages with actors biography (featured image, name, about, date of birth, etc) and I have a menu with the option ...
0
votes
1answer
474 views

How to display list of child pages with parent in wordpress?

I have following format of sub-pages in WordPress: About Us -Services -Products -Surgery I want to list all sub-pages with parent page like above but the code that I am using from ...
1
vote
0answers
77 views

Get Parent List Class for Child Pages Using Walker

I'm having trouble getting child pages to use the parent li class whilst using wp_list_pages(). I'm using a walker to get the list classes to use page title, but no matter which way I try, I can't ...
0
votes
1answer
231 views

Display grandchildren on child and grandchild pages using wp_list_pages

On hierarchal pages 3 levels deep, I would like to display the grandchildren on child and grandchild pages (but not on the parent page). What I have so far displays the grandchildren on the child page ...
0
votes
0answers
42 views

Walker only returns one child page

I'm trying to create a menu on a page showing all of its sub-pages. I want to add an image to the link so I'm using a walker to edit the output of wp_list_pages. But when I call the walker only the ...
0
votes
1answer
355 views

How To List Sibling Pages And Include The Featured Image?

I recently came across this cool tutorial on listing sibling pages. Below is the suggested code: <?php //GET CHILD PAGES IF THERE ARE ANY $children = get_pages('child_of='.$post->ID); ...
0
votes
0answers
61 views

External link nested in wp_list_pages

I'm using wp_list_pages to return the children of a page. I want to 'replace' one of the returned links with a link to an external page. Currently I am using exclude to exclude the page I wish to ...
0
votes
1answer
86 views

wp_list_pages, links only for pages with no children

Is this possible to do, and what is a best practice solution? The things I can think of is parsing the page structure myself, or do it with JQuery to convert <a> to <span> or similar. Is ...
0
votes
1answer
67 views

Get whole <li> linked with wp_list_pages

I'm using wp_list_pages for my sidebar and it works fine to me, i just wanna add new feature which seems is not listed on codex or i don't know how to use it. $args = array( 'child_of' => ...
0
votes
1answer
49 views

List all Posts under heading in wp_list_pages menu

I am currently using the default Page Navigation (wp_list_pages) with wordpress and I have set my homepage to a page called "Home" and my blog to a page called "Events" but I would like to list the 10 ...
0
votes
1answer
19 views

Post Fetching Ignoring Sort_Column?

I am using the code below subpages for my portfolio. For some reason, it seems to be ignoring the ordering I have set on my pages. Any help? <?php $args = array( 'post_type' => ...
1
vote
3answers
344 views

How to echo excerpts with wp_list_pages?

I've tried to echo excerpts in wp_list_pages with the code below. It works, but only for one of the child pages. How would I echo the excerpt and title for each child page? <?php $children = ...
1
vote
2answers
101 views

Do Not Display Parent Page if No Subpages

This is the code from the codex most commonly used for sidebar menus. It displays the child pages of the top level ancestor and the ancestor itself. There is one thing about this code I would like to ...
-1
votes
1answer
264 views

Wordpress two row automatic sub navigation with double wp_list_pages. Is it impossible?

I'm working on large site with top-navigation menu for top-level pages only. Is there any way to make sub navigation menus work as on image attached? I hope the problem is in myinsufficient ...
0
votes
2answers
2k views

Ways to give a wp_list_pages menu link specific class names?

I'm looking to style my wp_list_pages with a span class. I'd like to give it a unique class so that I can give each a specific icon. 'link_before' => '<span ...
0
votes
1answer
356 views

Adding elements to wp_list_pages (within <li>, but before <a>)

I'm working on my first wordpress theme and I'm running into some trouble. I'd like to add an extra div (which I'll style in css) within each <li>, but before the actual <a ... > element ...
0
votes
1answer
176 views

Include Custom Post Type Archive in wp_list_pages

I am wondering how to include a custom post type archive in wp_list_pages. If there were a page ID, I could simply attach that page to the list using the 'include' argument. I know that there is a ...
-1
votes
1answer
171 views

Making current_page_item work with wp_list_pages in sidebar on post pages

I'm working on a website where we have a menu in the sidebar that pulls the list of the parent for the current page, and all the children of that page. The problem is that, on pages where there's a ...
1
vote
1answer
58 views

Arrange Combined List of Pages and Categories

I'm using the code below to display both top-level pages and categories in my menu. (If this is the incorrect way to do so, please let me know). I would like to arrange the items alphabetically. The ...
1
vote
1answer
295 views

new_excerpt_more link not working properly

My "Read More" button is linking to the current page page instead of the excerpt page it is suppose to be linking to. Here is my function in function.php file: function new_excerpt_more($more) { ...
0
votes
1answer
214 views

wp_list_pages hierarchical help

So I have been searching online for something that I think is simple to achieve and I am most likely over thinking it. I have found many related articles on the matter but can't seem to get it to ...
0
votes
1answer
92 views

List all pages including archive

I'm creating a custom options page on my site. One of the options is controlling a box on the homepage and i'm trying to set the link for the item to any page on the site via a select menu. as of now ...