Support » Plugin: XML Sitemap & Google News » Add url sitemap only by custom field

  • Resolved webbando

    (@webbando)


    Hello,

    I need to add my own custom post on sitemap.

    But I need that the url of posts shall be added only when each posts have a custom fields set as ‘1’.

    Is it possible?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter webbando

    (@webbando)

    Is there a Way to accomplish my request?

    Thread Starter webbando

    (@webbando)

    @ravanh is it impossible to have what I’m asking?

    Plugin Author Rolf Allard van Hagen

    (@ravanh)

    Hi, are you asking if this plugin can check for some custom field in a custom post type and then include that post? No, that will need custom coding.

    But what you CAN do is this: activate the custom post type to be included on your XML Sitemap admin page and then edit each custom post that you wish to NOT appear in the sitemap. There will be the same option to “Exclude from XML Sitemap” on each custom post, just like normal posts and pages.

    Plugin Author Rolf Allard van Hagen

    (@ravanh)

    Or alternatively — if activating the custom post type and then excluding individual custom posts is not an option for you — then you can do this:

    For each custom post you wish to list in the XML Sitemap, copy the full URL to the field “External web pages” on the “Advanced” tab on Settings > XML Sitemap.

    Start each URL on a new line and if you want, you can add a space after the URL plus a value between 0.1 and 1.0 to mark the desired priority value for that custom post URL.

    Thread Starter webbando

    (@webbando)

    When I flag Exclude from XML Sitemap on a post what happens on SQL?

    Because I have a list of ID of the posts that I need to exclude and I’d like to made it from Mysql.

    Please can you help me?
    Thanks a lot.

    A list of ID’s to exclude, that’s currently not possible. I’ll consider this a feature request and might add it to the next version 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Add url sitemap only by custom field’ is closed to new replies.