WordPress.org

Ready to get started?Download WordPress

Forums

Page-list
[resolved] [Plugin: [pagelist]] Shortcode in Sidebar Widget not working (8 posts)

  1. dave
    Member
    Posted 1 year ago #

    I'm trying to get the shortcode [pagelist_ext] to work in my sidebar.

    I have the "Use Shortcodes in Sidebar Widgets" plugin activated, but the shortcode in a regular text widget won't work. It also doesn't work on any pages either.

    I'm on my local testing server, but I just tried the plugin on a site online and this shortcode didn't work there either.

    Just [pagelist] works and shows the site map-style page list.

    Are there content requirements for the pages listed? Right now the pages I'm trying to list have no photos, just title and content. Seems like it should work still. Thoughts?

    http://wordpress.org/extend/plugins/page-list/

  2. webvitaly
    Member
    Plugin Author

    Posted 1 year ago #

    [pagelist] shows list of all pages on the site;
    [pagelist_ext] - shows subpages to current page (works like [subpages]);
    IMHO you just don't have subpages and shortcode does not have what to show;
    try to use [pagelist_ext child_of="0"] or similar;

  3. dave
    Member
    Posted 1 year ago #

    Gotcha. Adding "child_of=x" worked.

    I guess that's what my original question was: "Are there content requirements for the pages listed?". I was under the impression that "[pagelist_ext]" would default to show all pages if no parents/children were specified.

    Thanks for your help.

  4. fxtv
    Member
    Posted 1 year ago #

    I just installed and activated the page-list (webvitaly) plugin but nothing happens. The page still displays the [pagelist] directive not the actual page list.
    NB : I use the Atahualpa theme.

    What did I miss??!

    FRan├žois-Xavier

  5. webvitaly
    Member
    Plugin Author

    Posted 1 year ago #

    @fxtv: add this code:

    <?php add_filter('widget_text', 'do_shortcode'); ?>

    to your functions.php to run shortcodes in sidebar.

  6. fxtv
    Member
    Posted 1 year ago #

    Many thanks for your answer but my problem is to use shortcodes in Page page. In Article pages it works fine.

    Would you tell me the magic sentence to add to get it work ??

    Fran├žois-Xavier

  7. webvitaly
    Member
    Plugin Author

    Posted 1 year ago #

    @fxtv: I tested sortcodes in Atahualpa theme in pages and in posts and it works good. Did you modified the page output (page.php file) in that theme?

  8. fxtv
    Member
    Posted 1 year ago #

    I have removed the WordPress Users plugin and now everything is fine.

    fx

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic