-
Author
-
February 4, 2016 at 03:42 #102000AlamSyedParticipant
This is my scenario,
I create a private Forum of type category , then I create two public forums to type forum which are the children of that category forum. I get a nice category level organization, when I click on the url,
Home/ Forums/ Private: DummyCategory.
But when I click on one of the forums :: Home/ Forums/ Private: DummyCategory/ DummyForum1
all the posts that do not belong to that forum shows up. It means if I post in DummyForum2 or 1 or any forum, when I click Home/ Forums/ Private: DummyCategory/ DummyForum1 , all the posts show up.
It can’t be by design ? Is this a bug ? Most likely some settings need to be changed in the bbpress I suppose , any idea ?
February 4, 2016 at 03:57 #102001AlamSyedParticipantJust for additional details I am using code to add into the forum. I can get the parent child relations between the forums displayed properly, the insertion of the topic goes to the right parent forum. But then that bug shows up.
COPY CODEif (!function_exists('bbp_insert_topic')) { require_once '/includes/topics/functions.php'; } echo "All fine here ??? Did it reached "; $forum_ID = $selectmyID; $terms = array(bbp_get_topic_tag_tax_id() => $key_pieces); // The topic data. $topic_data = array( 'post_parent' => $forum_ID, // forum ID of Projects hard coded 'post_status' => bbp_get_public_status_id(), // Subscribed users can see this 'post_content' => $my_content, 'post_title' => $slug, 'comment_status' => 'open', 'menu_order' => 0, 'tax_input' => $terms ); // The topic meta. $topic_meta = array( 'forum_id' => $topic_data['post_parent'], 'reply_count' => 0 ); // NOTICE! Understand what this does before running. $post_id = bbp_insert_topic($topic_data, $topic_meta); bbp_stick_topic($post_id , true); // Making it super sticky ! echo "The post id returned is " . $post_id; echo "Sucessfully inserted the post" . $slug . " programmatically !!!!";
February 4, 2016 at 16:34 #102141LauraModeratorHello, will assign the ticket to a higher support level who can help and advise you in your query.
Thanks! 🙂Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
February 7, 2016 at 22:59 #102560AlamSyedParticipantThanks. I am just trying to understand why this functionality is broken, I don’t think its anything related to kleo theme, but it would be very nice if you guys can point me in the right direction to resolve this.
February 8, 2016 at 20:34 #102770AndreiModeratorUnfortunately this is a pretty custom case, maybe it’s something related to the way you’re insering your topics or maybe it’s something from bbpress.
As you supposed this is not related to Kleo, it’s pretty custom and because it needs some testing/debugging time I cannot get involved into it.
I recommend you to either try your luck on the bbpress forums or hire a devloper to debug and fix your issue.
Please let me know if I can help you with anything else.
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionFebruary 9, 2016 at 06:16 #102826AlamSyedParticipantI will follow your advice on checking on bbpress forums. However what I am doing is not a very custom case, this is the general way to insert posts programatically in bbpress. There is nothing fancy going on in the code, just a simple insert, and as I said I can see the parent of the post being correct yet there is a bug. But anyways thanks for your help.
February 10, 2016 at 18:13 #103168AlamSyedParticipantI am posting this for all those who may encounter this problem when starting out like me. I was able to resolve this issue using bbpress forums, it was a silly error, the way to resolve this is to make the topic sticky rather than super sticky so it doesn’t shows up in all forums. Here is the link to my bbpress discussion.
February 10, 2016 at 19:14 #103206AndreiModeratorThanks for posting this over here, glad you got your issue solved.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.