Forum Replies Created
-
In reply to: I think I found a bug in bbp_topic_subscription_link
@tharsheblows I don’t know if it matters but just letting you know that your code fixed this for me! thanks!
Thanks for the tip! It’s my bad, I know should’ve checked the plugins and theme first before even asking this.
The plugin that caused thus for me was:’bbpress wp4 fix’.
It’s kinda funny since that plugin was supposed to fix me help some other problem but I can fix that problem without using that plugin so it’s alright.It’s still didn’t load the right user created topics, favorites and subscriptions but with a bit of tweaks on the loops I got it to display everything correctly now.
Thanks you very much, I guess that makes my problem resolved now for me 🙂
In reply to: Display Logged in User’s Subscribed TopicsThanks this helped me out!
In reply to: bbp_get_user_topics_startedJust wondering, have you found a way to get back array back of the topics the user started? Stuck on this problem too.
I am running WordPress 4.4.2
Wow very nice! The bbpress-fix actually did it! I guess it’s solved it now, thanks!!
I finally found what was causing the problem after going through my functions.php.
Apparantly it was this function that was causing my bbp_topic functions to not function:function SearchFilter($query) { if ($query->is_search) { $query->set('post_type', 'post'); } return $query; } add_filter('pre_get_posts','SearchFilter');
After commenting this out everything seems to work perfectly fine now with all topic functions working and displaying correctly now.
I still don’t know exactly what it is but I probably am not using the $query stuff properly in here. Anyway the problem got much more clear now at least and can be dealt with much better now.Yup I have literally copied all the code from ‘loop-topics.php’ in custom theme to the wordpress theme twenty fifteen, where it correctly does return true and topics are shown correctly.
I must have done something wrong in my custom theme, I just have no idea what the possible causes could be tho.It just came to my mind that it might be template php file that bbpress uses, I’ll go check that now.
I use bbpress in combination with buddypress maybe it can be something with that also.Hi, to test what boolean came out I tested bbp_has_topics() in: custom_theme/bbpress/loop-topics.php.
In my custom theme it returns false and in wp twenty fifteen theme it returns true. Maybe using buddypress has something to do with it?