How to add category to AnsPress question permalink

AnsPress allows the developers to easily customize question permalink as per their requirements. It already have 5 inbuilt custom question permalinks which can be selected in AnsPress options.

In this FAQ, we will see how to add a Category slug in question permalink. But this permalink will not work if question does not have any category so use it at your own risk.

Loading Gist...

After adding this snippet to your theme’s functions.php, save permalink in WordPress settings.

1 Comment

  1. Categories are not showing as dropdown in ASK QUESTION.

    Please help me, How to do it ?

    Reply

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment