Horje
Create a short code that list child pages of active page - Wordpress Solution
[Solved] - Create a short code that list child pages of active page - Wordpress Solution
Try following codes
I've recently began looking at using short codes on a current project, and am running into an issue that I need to get resolved quickly. The question: How do I create a short code that list child pages of active page? The Scope: Create a short code function that can be called from within the WYSIWYG wp editor on a page, that lists the sub/child pages for that active page. It should display them as links, or better yet an unordered list of links to the pages. I've referenced both of these: [[LINK href="http://codex.wordpress.org/Function_Reference/get_pages"]]Get Pages Function[[/LINK]] [[LINK href="http://codex.wordpress.org/Template_Tags/wp_list_pages"]]List Pages Function[[/LINK]] But neither seem to do what I am looking for, please help.

Solution - 1

There's also this one: [[LINK href="http://wordpress.org/extend/plugins/list-pages-shortcode/"]]http://wordpress.org/extend/plugins/list-pages-shortcode/[[/LINK]]


Solution - 2

I think this plugin is what you need: [[LINK href="http://wordpress.org/extend/plugins/wordpress-navigation-list-plugin-navt/"]]http://wordpress.org/extend/plugins/wordpress-navigation-list-plugin-navt/[[/LINK]] It makes custom navigation lists. You can change everything you want in the css and you can select the paged you want to show each list.

Date: 2022-10-21 05:23:13
Category: Wordpress
More for You