Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
In reply to: is_singular() Always False, Everywhere
Ooops.
I have been jumping back and forth testing forum home and topics as they both don’t work and I copied the wrong line I was using.
So, correction:…when i put
echo is_singular( bbp_get_topic_post_type() ) ? 'yes' : 'no'; exit;on line 255 ofbbpress/includes/common/template.phpinsidebbp_is_single_topic(), I get a white page that says “no”.I get the same “no” doing the forum check in the forum function while on the forum page.
In reply to: is_singular() Always False, EverywhereThanks, Stephen.
Ok, so, Query Monitor is telling me that topic pages are returning true on a bunch ofis_s:is_page() is_singular() is_bbpress() bbp_is_single_topic() is_buddypress() bp_is_group() bp_is_group_forum_topic() bp_is_group_single() bp_is_groups_component() bp_is_single_item()But, when i put
echo is_singular( bbp_get_forum_post_type() ) ? 'yes' : 'no'; exit;on line 255 ofbbpress/includes/common/template.phpinsidebbp_is_single_topic(), I get a white page that says “no”.
Viewing 2 replies - 1 through 2 (of 2 total)