Viewing Forum Pages makes Blog Menu Item the current_page_parent
I found this odd, when I go to the /forums index or view any forum/topic/reply the menu item for Blog in my Main Menu is attributed the class ‘current_page_parent’ which makes it highlighted as though I’ve viewing that page.
Is there something in the walker or way to avoid having the Blog Menu Item as showing up as the ‘current_page_parent’.
try switching to a default theme and see if the issue persists , if it doesnt contact your theme author for help.
Thanks @robkk, I installed Twenty Fifteen and although it’s not visually apparent if you inspect the blog item in the menu you’ll find the ‘current_page_parent’ class on it’s li.
What’s the best course of action for me to take in notifying the bbpress team of the bug?
yeah your right it is showing this class on the blog menu item for the bbPress custom post type archives, but i also checked some other cpt archives from jetpacks portfolio cpts and its doing the same thing.
i assume maybe all cpts?? but let me check a little more with some other plugins.
i tested the Bones framework custom post type archives and it shows the class, so does the downloads archive in Easy Digital Downloads , Woocommerce’s shop page has not problem though.
I dont know what to tell ya really??
I appreciate that, I’ll go through some CPTs next week and play with the settings to see what the cause is and if it’s a setting will notify bbpress, etc. Otherwise if it’s a general CPT issue will raise with WordPress.
Enjoy your weekend
I wasn’t able to pinpoint the cause so I’ve opened with WordPress support here;
there are likely other people who have posted a topic like this one from 3 years ago.
you can try the code the user placed below for the bbPress custom post types and see if it works.
Greatly appreciated, that did the trick for me. I only needed to apply for the forum post type as topics and replies don’t reside on their own pages so isn’t needed in the switch statement.
Need help for our blog, we want to integrate forum in our blog to related query, how to integrate the forum in our WordPress blog
You can check out the documentation here – https://codex.bbpress.org/
If you’d like assistance with anything specific I suggest opening a new topic as this is an old unrelated one so no one is going to read your post.
I did notice you’re with wordpress.com and not a self-hosted wordpress.org instance so you won’t be able to use bbPress as it’s an installable plugin for wordpress.org instances. You can look into creating a free forum on another site, more information here;
- You must be logged in to reply to this topic.