Automattic / Automattic/jetpack

Sitemaps: Jetpack Portfolio Posts not added to Sitemap

Open
#9,158 2 comments 0 reactions 0 assignees View on GitHub
[Feature] Custom Content Types [Feature] Sitemaps [Pri] Normal [Status] Stale Bug
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

In #3201 we added support for the Portfolio CPT to our sitemaps.

Yet if you follow the instructions below, no portfolio projects appear in the sitemap:

1. Go to Jetpack > Settings and enable both Sitemaps and Portfolios.
2. Go to Portfolio > Add New
3. Publish a new project
4. That project won't appear in the sitemap.

Yet posts from other whitelisted Post Types do appear in my tests. The issue seems limited to Portfolios (and maybe our Testimonials, I have not tested).

Reported here:
https://wordpress.org/support/topic/sitemaps-jetpack-we-are-not-good-friends/

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue using the listed Jetpack Settings and Portfolio steps, then compare how Portfolio posts are handled with other whitelisted post types in sitemap generation. Done means a newly published Portfolio project appears in the sitemap; also check whether Testimonials show the same behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.