WP Js List Pages Shortcodes
Support for [tree-pages], [list-pages] and [child-pages] shortcodes in your posts or pages to display all child and/or parent pages.
The shortcodes accept all parameters available for wp_list_pages() function.
**Usage**
List of all pages with the same parents: [tree-pages]
List of all pages: [list-pages]
List of all pages sorted by title: [list-pages sort_column="post_title"]
List of pages but exclude some page by ID: [list-pages exclude="64,128,233"]
List of child pages exclude one page by ID: [child-pages exclude=64]
== Installation ==
1. Download and unzip the last version of this plugin.
2. Upload the wp-js-list-pages-shortcodes folder to ./wp-content/plugins/
3. Go to WP Admin panel > Plugins > activate “WP Js List Pages Shortcodes”
== Frequently Asked Questions ==
== Screenshots ==
== Changelog ==
weitere Plugins:
weitere verfügbare Seiten:










Hello and thank you for your very useful plugin.
I am trying to accomplish something like the following:
[child-pages sort_column="post_date&sort_order=asc"]
Is it possible? If so what is the right syntax?
Thanks
Yanik
[child-pages sort_column=post_date sort_order=asc] is the right syntax,
but sort_order=asc is the default value so you don’t need it.
Thank you so much for this answer!
Cheers
Yanik
Actually whether I try
[child-pages sort_column=post_date sort_order=desc] or
[child-pages sort_column=post_date sort_order=asc]
I get the same result. I am trying to get the last child entered in Wordpress to be at the top of the list.
Do you know of another shortcode that would accomplish that?
Thanks again for your help.
Yanik
I check it with the same results and it’s a bug, sorry.
Will be fixed with next version.
Jörg! You fixed it! thanks so much it works perfectly now!
Merry Christmas, you just made my day!
Yanik
Can you use a class argument so that CSS styles may be applied?
The classes “tree-pages”, “child-pages”, “list-pages” are available/included for elements if defined in your css files.
Very good job !
[...] original here: Schülers Blog » List Pages Shortcodes Tags: plugins, [...]
Thanks for the plugin! I’d like to know if it can or could be modified to display the excerpt information for each of the pages listed. Having the bulleted list is great, however adding descriptions from the excerpts would also be very nice.
Jason
Same question as Jason. How can you add descriptions from the excerpts. Can’t find the right shortcode. Can you help me please ?
Thank’s
Descriptions from the excerpts are not supported at the moment.
I will check the posibility it next days.
I figured out how to display publication date.
Another question: is it possible to display the author of the page between the link and the publication date?
Possible bug: I tried using “number=1″ to test the function for limiting the number of pages displayed and it didn’t work (in the test case, two pages (of 2) were displayed). Is there a minimum number above one for this function? Or is this a bug? Or is this a bug? In the future, when our site has more articles, I’d like to create a list of 3-5 current (most recent) articles.
Thanks for creating this plugin. This will come in very handy for creating automatically updated lists of articles on a website I admin.
Is it possible to list pages only from a certain time period? I’d like to be able to list pages published in certain months or years, so that I can create separate lists for these time periods.
@Geoffrey Allan Plauche: only the parameters of wp_list_pages() function are available. (numbers is no valid parameter)
http://codex.wordpress.org/Template_Tags/wp_list_pages
But… i can check it next time and perhaps some special parametes can be included in the next version.
Thanks.
I thought numbers would work. It’s listed on the page you linked to as a parameter, towards the end, before the examples:
New version available.
@Jason: excerpts not available at the moment. Sorry, but this needs a complete programming and handling of all page informations because not supported by original function.
@Geoffrey Allan Plauche: number and offset works now.
Wonderful Plugin!
I’d also love it if, for example, I could do something like
[code]
[child-pages limit_depth=2]
[/code]
Just because at times I don’t want to show everything recursively past a certain depth.
Awesome work! Thanks!
you can use
“depth ” for control how many levels in the hierarchy of pages are to be included.
or with WP 2.8 new params like:
“number” sets the number of Pages to display.
Thank you, Jorg. The “number” function allows me to create a limited list of current articles.
I’m using shortcodes to to make a list of current articles and a list of all articles. Your plugin allows me to do this, but it seems the limits of the wp_list_pages() functions makes the process more cumbersome than need be.
My page structure is as follows Articles Archive > Author > Article. The Author pages are the children of the Articles Archive page, and the Article pages are the children of their respective Author page and the grandchildren of the Articles Archive page.
What I’m having to do now to display the articles but not the author pages is to exclude each author page individually in the shortcode with its page id number. When I create a new author page, I have to add its page id number to the exclude list for both shortcodes in order to prevent it from displaying in the lists of articles. What I’d like to be able to do is display in a flat list only the grandchildren (the articles) of the Articles Archive page with one simple shortcode that doesn’t need constantly updated include or exclude lists. The “depth” and “child_of” functions don’t let me do this; they display display the children of the Articles Archive page (the author pages) too.
I love your plugin. It basically does what I need right now. But like I said above, the process could be made a lot simpler. I can’t just set it and forget it. But I’d like to be able to do so. So I’d like to make this a feature request.