• Resolved Judy Leslie

    (@judy-leslie)


    Hello! Thanks for your plugin! I have set up my sitemap to exclude three pages. It is working for the first ID in the attribute, but not the other two. Here’s the shortcode:

    [simple-sitemap types=”page, product, post” exclude=“14636, 14637, 14638″]

    I’ve ordered them differently, and whichever one is listed first becomes the only hidden page. I’ve also tried using three exclusion attributes, one for each ID. That does not work either.

    FYI: I am using the Divi theme (page builder). Pages are all Woocommerce pages (cart, account and checkout). I’ve made my sitemap my 404 page (via 404page plugin). I’ve deactivated it to see if it makes a difference. It does not.

    Any guidance would be most appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author David Gwyer

    (@dgwyer)

    Hello Judy,

    I couldn’t reproduce your issue. I added a test WC product and three WC pages (checkout, account, cart) and then excluded these via the page IDs. All three pages were excluded as expected.

    If you have a local test site you could try the plugin there to try and diagnose the error (i.e. swap theme to a WP default theme, and/or deactivate other plugins).

    Thread Starter Judy Leslie

    (@judy-leslie)

    Hi, David –

    Many thanks for getting back to me. This site is in development, so no problem testing the theme and plugins. I tried 2015 and 2017 and deactivated all plugins. No luck, though. It still only excludes 1/3 of the excluded pages. Following is the shortcode I’m still using. Do you see any problems with it? Not sure if it matters, but I did try with and without spaces after the commas. That did not help either. Any other thoughts? Thanks!

    [simple-sitemap types=”page, product, post” exclude=“14636, 14637, 14638″]

    Plugin Author David Gwyer

    (@dgwyer)

    This worked for me:

    [simple-sitemap types='page, product, post' exclude='10, 14, 16']

    Perhaps try swapping out your quotes for single quotes. The ones in your shortcode example wouldn’t work for me until I changed them.

    Thread Starter Judy Leslie

    (@judy-leslie)

    Fantastic, David! The single quotes worked. I REALLY appreciate your quick responses and help! I have to head out of the office in a minute, but I will definitely write you a review when I’m back. Thank you!

    Plugin Author David Gwyer

    (@dgwyer)

    No problem Judy. Glad to help. 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Exclude Page Attribute Only Semi-Working’ is closed to new replies.