How to register “Custom Ask” page/function?

7.04K viewsCorefeatures
0

Hi,
I have done some customization in “function ap_ask_form()” or in  “function ask_from_content_field()” to be more specific.
But I want to keep your function / Ask page as its, and keep the changes in function “custom_ap_ask_form()”. So, far I have got partial success.
My question is –
What should I do so that it can detect “custom_ask” in the url, like yours is “localhost/wp/question/ask/”
Hope you understood what I mean?
Thanks
Regards

0

hi,
i was trying to do it because, i wanted to make separate pages/functions for 2 types of questions.. one is regular question type (which is, your present ask form)
and another is to “ask multiple choice questions” which i have made by customizing your functions.
i think even if I do the customization in “ask.php” itself, i won’t be able to make 2 separate question types… until I send something specific in URL itself (like ask2 or custom-ask etc, to let it know which form to load)…or is there any other way?
thanks.
Edit – Sorry for the duplication. I was NOT able to login from mobile, so my reply was posted as anonymous previously. weirdly anonymous post was not displayed in mobile (while i got the email alert for the same), but (as of now) it’s displaying in laptop.

0
Anonymous 0 Comments

hi,
i was trying to do it because, i wanted to make separate pages/functions for 2 types of questions.. one is regular question type (which is your present ask form)
and another is to “ask multiple choice questions” which i have made by customising ur functions.
i think even if do the customisation in ask.php itself, i won’t be able to make 2 separate question types… until i send specifics in url itself…or is there any way?
thanks.

0

Yes I understood, but what is the reason for that ?
you can modify ask.php in theme