WorkFlow

5.42K 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
0

Thanks! Hey, did you see the pull request I made?
Not much, but …..eh….  just a small bit.
Seems like when ‘ya get older, if you don’t KEEP coding, you forget things.

Posted new comment

Heheheh 🙂 Yes. I already merged your PR. Thanks

There was a mistake in my previous answer. I have updated the code.

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