With such custom requirements it’s unlikely you will just happen upon a snippet to achieve it. This is considerable chunk of customization and working with hierarchical data is always challenging.
When you are working with wp_list_pages() what is happening in background is that it compiles data and passes to instance of Walker_Page class, that extends generic Walker class and is how typically output of hierarchical data is done in WP.
wp_list_pages() can accept instance of custom walker, however putting one together takes some PHP chops. You might explore it some and extend your question with more specifics of desired output and how far you got with walker.
Otherwise you will have to build output completely from scratch.
Related Posts:
- Page template query with WP_Query
- How to display page content in a page template?
- Does WordPress generate an automatic page for post formats?
- Single page theme that uses pages for the content
- Trying to list out child pages with WP_Query
- Order by menu structure
- Targeting specific pages in the loop
- What are the differences between “Latest Posts” and “Static Page”?
- WP_Query not retrieving by random order under parent
- Set if condition with wp_nav_menu
- Set order of returned items in the WP_Query() class/function
- Search pages that are a child of the current page
- How to display summary content from a Page (Not a Post) on another page
- Serve specific “template” page at any URL that ends in its slug
- Display custom tags on pages that have a specific page parent
- Is there a reason why Pages are not publicly_queryable?
- Why post__not_in is ignored?
- Exclude parent with child pages from WP_Query
- Create a loop on my pages with new “WP_Query”
- All blog data on a page using custom query gives 404 for page 2 and onward
- When listing child pages run out of memory
- WPQuery calling specific posts problem
- WP_Query with multiple orderby NOT working with ASC and DESC, what’s wrong?
- Display specific page (that is child) content on parent page
- Get query results with a page title
- How to get current page nearest parent id?
- How to get main menu only with wp_nav_menu
- Unable to paginate a custom page query
- How to create single page site in WordPress
- Determine if ID is page or post and query the ID
- How to query for a page, get data, then query for child pages of that page
- Get list of all Grandchild Pages
- Custom query does not find pages
- How to get pages of parent (non-recursive)?
- WP Query and multiple pages
- How to use custom page for all posts with custom url, call another directory?
- display the children of the post using the current page as the main parent
- pages shortcode filtering by category
- How to create page that lists tags by initial letter?
- Get a page ancestor from a most viewed list
- How can I use a specific wordpress page template if certain words are used in page title [closed]
- Category Archive not working for pages
- Retrieving category pages from subcategory returns empty sets
- Issue in If else condition [closed]
- Show parent’s child and also child’s, child on a page?
- get contents and permalink from a specified page
- Get next post when using pagination with WP_Query?
- WordPress pagination returns the same posts
- How to write short code with if else to get page_id?
- Rewrite URL custom search query
- Paginate_Links page 2 doesn’t work
- Sticky Posts & Posts Per Page [closed]
- Can I specify post__in for one particular post type in the query?
- WP_Query & AJAX
- Sticky Post default functionality with WP_Query is ignored when using AJAX
- Orderby ASC changes to DESC in WP_Query
- How to access WP database inside ipn.php? [duplicate]
- How to get only return parts of WP_Query result for performance?
- How to get a query variable?
- Taxonomy and Date in same query?
- WP_Query : Search and Filter Using custom field AND/OR custom taxonomy
- wp_query to print posts if have X custom field value
- Rewrite gets completely ignored
- Check for the main query from the template
- How do I turn these values from MYSQL into an array
- get_posts() and global variables
- Should $query-> be used with conditional tags?
- Get user posts with custom WP_Query on author.php
- How to combine two WP_Query objects?
- WP_Query author parameter not working
- How to order posts on each different category?
- Getting the post terms ‘wp_get_post_terms’ per post when within the functions.php file
- WP Query and date format
- How to Order By Two Custom Fields?
- WP_query problem -spurious results
- Query Not working as expected
- tax_query not working on custom post type
- WooCommerce WP_Query using tax_query returns no results (0 = 1)
- WP Query and multiple queries
- How do i query woocommerce booking post type on init action?
- How to display post based on which is clicked
- date_query problem
- WP_Query Not Working with Variable
- Random posts in WP_Query when searching by tag
- How To Use WP_Query To Get The Custom Post type Posts With Keywords
- I wan to process the following js to process the AJAX Request on my function to calculate author Total Post views
- (How) Can I use ‘wild cards’ on the left hand side of an array argument?
- ‘s’ term in WP_Query extended class causes huge memory leak (268MB)
- Combine privileged users array with my current query
- Get posts from similar time as current post
- Query posts filter not working
- meta_query dates from an array
- wp_pagenavi on WP_Query using customfields
- paginate_links() on page (shortcode output)
- How to include custom fields in wordpress search
- Extend search query to search meta keys values based on search string
- AJAX multiple search boxes not merging with array merge
- When I visit my website there is only slash(-) showing intead of home or my website name. how to solve this? I am attaching image also to understand
- How to get products with the same custom attribute like ean code
- When to use WP_query(), query_posts() and pre_get_posts