• I’m using this shortcode, which is supposed to exclude a bunch of pages from the html sitemap.

    [wshs_list post_type=”page” name=”Page Sitemap” exclude=”6120,5401,5762,289,290,291,306,305″ order_by=”title” ]
    It only excludes the first one(6120). All of the other Page IDs show up in the html sitemap.

    Please advise.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Ben

    (@fire4all)

    We experiencing the same issue.
    This is an URGENT problem over here, because some content is not allowed to get viewed by normal visitors… I ran into huge problems, cause this feature worked when i installed it last year.

    Could you please provide help?

    Ben

    (@fire4all)

    Okay i found the issue.


    Maybe this helps you, too:

    The documentary is wrong. You need to let a space between the elements.
    Like exclude=”111, 222, 333″

    wp-simple-html-sitemap/inc/wshs_front_view.php
    In the code it says
    $excludePosts = explode(‘, ‘, $atts[‘exclude’]);

    You can also manually change this to
    $excludePosts = array_map(‘trim’, explode(‘,’, $atts[‘exclude’]));

    to make it work with and without blanks/spaces after the “,” ??
    Works perfect now again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.