List Pages Shortcodes

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.

Download

**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 ==

= 1.0 =
* first release

weitere Plugins:

weitere verfügbare Seiten:

Popularity: 97%

11 Kommentare

  1. Yanik sagt:

    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

  2. Jörg sagt:

    [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.

  3. Yanik sagt:

    Thank you so much for this answer!
    Cheers
    Yanik

  4. Yanik sagt:

    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

  5. Jörg sagt:

    I check it with the same results and it’s a bug, sorry.
    Will be fixed with next version.

  6. Yanik sagt:

    Jörg! You fixed it! thanks so much it works perfectly now!

    Merry Christmas, you just made my day!
    Yanik

  7. Erik Schmith sagt:

    Can you use a class argument so that CSS styles may be applied?

  8. Jörg sagt:

    The classes “tree-pages”, “child-pages”, “list-pages” are available/included for elements if defined in your css files.

  9. Ben sagt:

    Very good job !

  10. [...] original here: Schülers Blog » List Pages Shortcodes Tags: plugins, [...]

  11. Jason sagt:

    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

Schreibe einen Kommentar