Anpress point to WP Categories?

6.61K viewsGeneral
0

I am developing a site and it revolves around Anspress. I have a BNWF plugin that utilizes WP Categories to fire off notifications of a new post.
The issue I’ve ran across is that with Anspress categories add on, it creates an entire new category type. I added the category add on in order to have the category drop down appear on the submit a question form.
I was wondering if it is possible to point the Anspress Categories to the default WP Categories (that all the notifications are tied to) so that when a new question is submitted the notifications are fired off for that category. I have something like 75 different categories there.

Answered question
0

Okay, my /category/ folder contains 2 PHP files:
widget.php, categories.php
I search for “question_category” in both those files. I’m assuming I don’t have to change everything from question_category to category. So I changed everything that was looking like it was using that string: ‘question_categories’ in any method or url string (get_terms(), etc)
I added the hook on line 76 of categories.php.
I can’t seem to get the addon to show up to enable in in anspress.
I did change this in the Widget file (thought it might need to be unique) no change.

parent::__construct(
   'AnsPress_WP_Category_Widget',
   '(AnsPress) WP Categories',
   array( 'description', __( 'Display WP categories', 'anspress-question-answer' ) )
  );

Posted new comment

Share your categories.php with me. Please us gist.github.com

Here is my current work in progress categories.php along with the original for reference.
https://gist.github.com/WadeTheFade/1dbaa65775548e0ccefc2e8cb354528a

Any update?

You are viewing 1 out of 4 answers, click here to view all answers.