Yoast / Yoast/wordpress-seo

Add archive to sitemap

Open
#10,312 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

featurerequest needs-product-feedback
Dominant language
JavaScript
Stars
2k
Forks
975
Avg merge
3d 13h
Merged PRs (30d)
36

Description

Is your feature request related to a problem? Please describe.

I have archive pages of custom post types that should be index by google but the single posts of this post types shouldn't be. I set this up in the Yoast settings but the archive doesn't appear in the sitemap. It only shows it up if I index all posts of this post type (what I don't want). Here are the settings:

screen shot 2018-07-10 at 15 05 16

Describe the solution you'd like

If this settings combination is set then it should add the archive page of this post type to the sitemap.

why you think the feature request is something we should consider for the Yoast SEO plugins?

Because I always had this usecase across different projects.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the custom post type archive and sitemap behavior described in the issue, including the Yoast settings combination where archives are indexed but single posts are not. Done means the post type archive appears in the sitemap under those settings without requiring single posts of that type to be indexed.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
search
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.