WorkFlow

4.10K viewsCore
0

Yes, I need to dig through the code, & perhaps this is a customization, but let’s see:
Initially, a person would be on this page for example:  https://anspress.io/questions/categories/core/  So, that would be accomplished via this shortcode, right? [anspress categories=”fix-woocommerce-speed”]
or
[anspress categories=”paypal-payments”]
or
[anspress categories=”stripe-payments”]
Do those shortcodes look correct?
Then here’s the next behavior after they actually arrive on any of those (category) pages, they would click the ‘Ask Question’ button. (just like here)
So, should/could the ‘Ask A Question’ form have the ‘Category’ selector actually removed entirely  https://prnt.sc/k5tgqw

Answered question
1

This is very simple.
First have a look at this line of code: categories.php#L420 and here you can see style attribute to simply hide the category field:

$form['fields']['category']['attr'] = array(
    'style' => 'display:none',
);


That will do what you want.

Edited answer
You are viewing 1 out of 2 answers, click here to view all answers.