• Resolved Theo

    (@dubeux)


    Hi,
    I’m trying to find a way to exclude all posts of a given category (my regular posts, not events) from the sitemap. I use Yoast, which does not allow me to do that, so I’m using a filter to tag them. It works, but the posts, even with the tag, still show up on the sitemap.
    These posts have a calendar on the sidebar, with the shortcode events_calendar.
    If I use Yoast to apply the tag individually to the post, it works (it doesn’t show on the sitemap). The only difference between them (the post tagged by my filter and the post tagged by Yoast) is the ID of my calendar. I don’t understand why it changed, much less how could it affect my noindex tag.

    file1, tagged by my filter:
    <div id="em-calendar-197" class="em-calendar-wrapper"><table class="em-calendar">

    same file1, after being tagged by Yoast:
    <div id="em-calendar-142" class="em-calendar-wrapper"><table class="em-calendar">

    Any clue?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    sorry for the confusion and just to confirm, did you mean a wp post with events calendar on the sidebar? if you remove events calendar everything is working fine?

    Thread Starter Theo

    (@dubeux)

    Thanks for your reply. I still have no idea why the calendar ID changed, but apparently my issue is related to Yoast – I’m trying to solve it here. Once I get it right, I’ll confirm here.

    • This reply was modified 7 years, 9 months ago by Theo.
    Plugin Support angelo_nwl

    (@angelo_nwl)

    Im going to marked this as resolved for now and re-open anytime if needed.

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

The topic ‘Can’t noindex posts’ is closed to new replies.