Title: how to make a conditional statement in wordpress “ function.php” using if is_qa_
Last modified: August 20, 2016

---

# how to make a conditional statement in wordpress “ function.php” using if is_qa_

 *  [heradius](https://wordpress.org/support/users/heradius/)
 * (@heradius)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/how-to-make-a-conditional-statement-in-wordpress-functionphp-using-if-is_qa_/)
 * I want to put a condition statement in wordpress function.php which will call
   certain function in all pages except in qa_pages.
 * Below are the functions which i want to be called, except if it is a question
   and answer page.(qa_page())
 *     ```
       require_once(GABFIRE_FUNCTIONS_PATH. '/review-options.php');
       require_once(GABFIRE_FUNCTIONS_PATH . '/custom.php');
       require_once(GABFIRE_FUNCTIONS_PATH . '/shortcodes.php');
       require_once(GABFIRE_FUNCTIONS_PATH . '/post-types.php');
       ```
   
 * please help if anybody has an idea, I’m illiterate in php.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [jacobuid](https://wordpress.org/support/users/jacobuid/)
 * (@jacobuid)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/how-to-make-a-conditional-statement-in-wordpress-functionphp-using-if-is_qa_/#post-2922517)
 *     ```
       if (!qa_page()) {
       	require_once(GABFIRE_FUNCTIONS_PATH. '/review-options.php');
               require_once(GABFIRE_FUNCTIONS_PATH . '/custom.php');
               require_once(GABFIRE_FUNCTIONS_PATH . '/shortcodes.php');
               require_once(GABFIRE_FUNCTIONS_PATH . '/post-types.php');
       }
       ```
   
 * This may work not sure…
 *  Thread Starter [heradius](https://wordpress.org/support/users/heradius/)
 * (@heradius)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/how-to-make-a-conditional-statement-in-wordpress-functionphp-using-if-is_qa_/#post-2922539)
 * this doesn’t work
    i want those functions not to be called in qa pages (is_qa_page())
 *  [jacobuid](https://wordpress.org/support/users/jacobuid/)
 * (@jacobuid)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/how-to-make-a-conditional-statement-in-wordpress-functionphp-using-if-is_qa_/#post-2922568)
 * i am unfamiliar with the function is_qa_page() and cant seem to find it online
   anywhere, do you have a link to documentation on this function?
 *  Thread Starter [heradius](https://wordpress.org/support/users/heradius/)
 * (@heradius)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/how-to-make-a-conditional-statement-in-wordpress-functionphp-using-if-is_qa_/#post-2922656)
 * is_qa_page is defined by Q&A plugin by wpmudev. I have used is_ga_page because
   it will require to use an If statement like “<?php if (is_qa_page()){…………”

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘how to make a conditional statement in wordpress “ function.php” using
if is_qa_’ is closed to new replies.

## Tags

 * [conditional statement](https://wordpress.org/support/topic-tag/conditional-statement/)
 * [function.php](https://wordpress.org/support/topic-tag/function-php/)
 * [if statement](https://wordpress.org/support/topic-tag/if-statement/)

 * 4 replies
 * 2 participants
 * Last reply from: [heradius](https://wordpress.org/support/users/heradius/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/how-to-make-a-conditional-statement-in-wordpress-functionphp-using-if-is_qa_/#post-2922656)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
