Skip to content

Related Posts: allow using the block only, without adding related posts to the bottom of each post. - #24072

Closed
jeherve wants to merge 10 commits into
trunkfrom
update/related-posts-behaviour
Closed

jeherve wants to merge 10 commits into
trunkfrom
update/related-posts-behaviour

Conversation

@jeherve

@jeherve jeherve commented Apr 25, 2022 •

Copy link
Copy Markdown
Member

Fixes #11021

Changes proposed in this Pull Request:

This PR changes the default behaviour of the Related Posts feature.

We want a few things:

  • The module should be automatically activated on sites that are newly connected to WordPress.com, or sites that update. That should be handled by switching the auto-activation setting for the module.
  • When you do activate the module, posts should not get automatically added to all your posts for you. This should be done by you via the settings under Jetpack > Settings > Traffic.
  • If you have been using the module until today, when updating to the most recent of Jetpack that toggle should be enabled for you, so you do not lose access to related posts at the bottom of your posts.
  • When you use a block-enabled theme, those settings are not relevant to you; the posts will not appear at the bottom of all single posts. We'll consequently update the settings UI to point you to the site editor in those cases, so you can add a Related Posts block there.

image

Jetpack product discussion

  • p1HpG7-fIo-p2
  • pcjTuq-hx-p2

Does this pull request change what data or activity we track or use?

  • No

Testing instructions:

You'll want to test things with multiple sites, to test different scenarios.

1. New site

  • Start with a site with some existing content, so related posts can be shown.
  • Connect the site to your WordPress.com account
  • The Related Posts module should be automatically activated.
  • The option under Jetpack > Settings > Traffic should show the active module, but without the related posts appended to all posts.
  • Toggling that option should start showing related posts at the bottom of all posts.

2. Old site using Related Posts

  • Start with a site that's been connected to WordPress.com for some time, and where Related Posts were active and displayed.
  • Switch to this branch; the related posts should remain shown. The settings under Jetpack > Settings > Traffic should show the new option checked already.

3. Old site that did not use Related Posts

  • Start with a site that's been connected to WordPress.com for some time, but where the Related Posts module is not active.
  • When updating to this branch, the module should become active, but the option under Jetpack > Settings > Traffic should not add the related posts section at the bottom of each posts.
  • The Related Posts block, however, should be available.

4. WordPress.com sites

  • Test that related posts still work on WordPress.com simple sites as well, where related posts get enabled differently.

@jeherve jeherve added Admin Page React-powered dashboard under the Jetpack menu [Feature] Related Posts [Block] Related Posts [Pri] Normal [Status] In Progress [Status] Proposal Enhancement Changes to an existing feature — removing, adding, or changing parts of it labels Apr 25, 2022
@jeherve jeherve self-assigned this Apr 25, 2022
@github-actions github-actions Bot added [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Feature] WPCOM API labels Apr 25, 2022
@github-actions

github-actions Bot commented Apr 25, 2022 •

Copy link
Copy Markdown
Contributor

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ All commits were linted before commit.
  • ✅ Add a "[Status]" label (In Progress, Needs Team Review, ...).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖


The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available.


Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped.
Then, add the "[Status] Needs Team review" label and ask someone from your team review the code.
Once you’ve done so, switch to the "[Status] Needs Review" label; someone from Jetpack Crew will then review this PR and merge it to be included in the next Jetpack release.


Jetpack plugin:

  • Next scheduled release: May 3, 2022.
  • Scheduled code freeze: April 25, 2022.

@daledupreez daledupreez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some quick comments based on inspection! I can take a spin at testing tomorrow if that would be helpful.

>
<span className="jp-form-toggle-explanation">
{ __( 'Show related content after posts', 'jetpack' ) }
{ __( 'Show related content for each one of your posts.', 'jetpack' ) }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might it make sense to note that this feature doesn't work for block themes as part of this explanation?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The general toggle still applies to block themes, so I think it's okay there. What doesn't work with block themes is hidden from the UI when you use such a theme.

@jeherve

jeherve commented Aug 30, 2022

Copy link
Copy Markdown
Member Author

Closing as this is now outdated. We can always revisit this later if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Admin Page React-powered dashboard under the Jetpack menu [Block] Related Posts Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Feature] Related Posts [Feature] WPCOM API [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Pri] Normal [Status] Proposal Touches WP.com Files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Related Posts: Clarify relation of legacy option to block

3 participants