You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Protected content message duplicated if Yoast SEO and Elementor active #123
Describe the bug
The protected content message appears twice on course pages when BOTH Yoast SEO and Elementor are active.
Replicated with both default Courses module and LearnDash module.
To Reproduce
Steps to reproduce the behavior:
Create a course and restrict it to a membership.
Activate Elementor and Yoast SEO plugins.
Visit the restricted course page.
See that protected content message appears twice.
Observe that the message appears once as expected if either Elementor or Yoast SEO is deactivated.
Screenshots
Expected behavior
Protected content message appears once on course pages.
Isolating the problem (mark completed items with an [x]):
I have deactivated other plugins and confirmed this bug occurs when only Paid Memberships Pro plugin is active.
This bug happens with a default WordPress theme active, or Memberlite.
I can reproduce this bug consistently using the steps above.
WordPress Environment
WP 7.0
PMPro 3.7.4
PMPro - Courses for Membership Add On 2.1.1
Elementor 4.1.1
Yoast SEO 27.7
@dwanjuki I feel that this gist should be added to the snippet library as well as mentioning the nocode workaround. Working with AI through this it also recommended a code fix in the core for cases like this.
I'm going to keep it open for reference, but we can recommend the gist/no code solution for now.
Activity
dwanjuki commentedon Jun 15, 2026
No code workaround: Set a Meta Description in the Yoast SEO section on course edit pages.
andrewlimaza commentedon Sep 2, 2026
@dwanjuki I feel that this gist should be added to the snippet library as well as mentioning the nocode workaround. Working with AI through this it also recommended a code fix in the core for cases like this.
I'm going to keep it open for reference, but we can recommend the gist/no code solution for now.
Restore the content filter at its actual priority around excerpts