Support » Plugin: Google XML Sitemaps » [Plugin: Google XML Sitemaps] Set Priority based on custom field

  • This all has to do with a custom post type, not posts or pages.

    I’ve built an online store using WordPress and custom post types. I have a custom field “sold” that can have a value of “TRUE” or “FALSE”. I want to set the sitemap priority of the “TRUE” (sold) items to 0.1 while keeping the existing items at 0.8.

    How can I do this?

    http://wordpress.org/extend/plugins/google-sitemap-generator/

Viewing 1 replies (of 1 total)
  • My solution was going to be to just query the metadata for the $post->ID (after adding a “global $post;” to the function) within the Render() function and then overriding the value set there, but custom post types don’t seem to support an ID tag? The post ID only appears for me for pages.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Google XML Sitemaps] Set Priority based on custom field’ is closed to new replies.