Hello,
Why it isn’t working
The plugin uses the function is_singular() to determine if it should look for a redirect link:
PHP
function me_spr_permalink_redirect() {
if (!is_singular()) { // <--- This is the gatekeeper
return;
}
// ... logic to redirect ...
}
While a Forum or a Topic is a single post type, bbPress sometimes interacts with the WordPress template hierarchy in a way that is_singular() returns false depending on your theme or how the forum is queried. Additionally, if you are trying to redirect a Forum Index (the archive of all forums), that is definitely not “singular” and the code will skip it entirely.How to Fix It
You need to tell the plugin to also look for redirects on bbPress post types. You can modify the me_spr_permalink_redirect function in the simple-post-redirect.php file to be more inclusive.
Try replacing lines 114–116 with this:
PHP
function me_spr_permalink_redirect() {
// Check for standard singular posts OR bbPress specific pages
if (!is_singular() && !is_post_type_archive('forum')) {
return;
}
Things to Double-Check
- Cache: If you use a caching plugin (like WP Rocket, W3 Total Cache, or LiteSpeed), the “old” page might be cached. Clear your site cache and check in an Incognito/Private window.
- The Meta Box: Ensure the URL you entered in the “Simple Redirect to:” box starts with
https://. If the URL is invalid, esc_url_raw() might be stripping it out for security.
- Forum vs. Topic: Are you trying to redirect the Forum (the category) or a specific Topic (the conversation)? The plugin needs to be active on that specific post type to work.