• Resolved PL Monteiro

    (@catch22blog)


    To exclude posts and/or pages we are told to put in their IDs separated by commas. This should not be the URL, I gather. So, where can I see the IDs for pages? Is it simply the slug /one-page-not-to-grab/ and /one-page-not-to-grab/and-a-child-not-to-either, or the IDs are the internal numbers referenced by the string title?

    In any case how do I get them? And can I get them without sifting through the MySQL database?

    Any help is appreciated.

    Thx.

    http://ww.wp.xz.cn/extend/plugins/google-sitemap-generator/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Go to “Pages >> Edit” in your WordPress backend, and hover over the link to a page you want to exclude. Your browser should show a URL in the status bar that looks something like this:

    http://www.yoursite.co.uk/wp-admin/page.php?action=edit&post=75

    The “75” is the number you want.

    Hope that helps.

    Thread Starter PL Monteiro

    (@catch22blog)

    Yes. It helps a lot.

    I was seeing myself immersed in the database with posts and drafts of posts over my head, but it is really quite simple.

    Thx. Thanks a lot.

    Hi,

    in previous versions of WordPress the IDs were displayed on the manage posts page. Unfortunately the newer ones don’t show it anymore 🙁

    I think about adding another way to exclude the posts, maybe with a checkbox on the post page itself, but in my opinion theres only a small percentage of users who really need this feature…

    Thread Starter PL Monteiro

    (@catch22blog)

    Hi Arnee. It is really quite simple as it is, using leewillis77 trick.

    This came about because I discovered Google Search was playing around with searches that could be relevant to my blog. First thing was, considering duplicate content in my homepage, that contains the excerpt beginning of each post, and indexing subsequent pages, with only the excerpts of each post and discarding the actual posts. Some time ago my site would appear in a search for “energy required to blow up the Moon,” but now it doesn’t because the post the sentence is in, is indexed in page 3 of homepage, with only an excerpt.

    I am beginning to think the people at Google do not like me.

    So first step was to exclude homepage from the sitemap (no ID required) and also the archives because these also contain excerpts and could override the actual posts (if there’s any conceivable sense in this. But it’s Google and they do as they please.) Then, I have the Classifieds plugin and child pages. Then, I have the All Tags page. These needed to be excluded too.

    In any case, I’d think it’s an idiocy to have to exclude homepage from indexing, but because the Google bot is going through the “previous” link, possibly up to very first page, it seems it doesn’t limit itself to follow the sitemap. Then everything gets duplicate status and most of my content is not indexed at all. Hey, it’s Google and they do as they please.

    Maybe a no-follow in my theme template. If I knew how to put it.

    So, here you go. That’s the why.

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

The topic ‘[Plugin: Google XML Sitemaps] Exclude posts/pages? How to get IDs?’ is closed to new replies.