Is Base Page?

Solved5.91K viewsGeneral
0

I’m wanting to do some conditional work based on if AnsPress is on the main base page (show a banner instead of h1 title).

What’s the best way to detect if base page? I had thought about using page title, but it is ANSPRESS_TITLE for all pages and only altered within the_title().

Thanks,

0

For question page you need this condition:

if (get_question_id()){
    //Your codes.
}
You are viewing 1 out of 2 answers, click here to view all answers.