you can define a constant in wp.config.php or at the beginning of functions.php of your theme
if (!defined('CAROUSEL_CPT')) {
define("CAROUSEL_CPT", "post");
}
WP_Query('post_type=".CAROUSEL_CPT);//....
you can define a constant in wp.config.php or at the beginning of functions.php of your theme
if (!defined('CAROUSEL_CPT')) {
define("CAROUSEL_CPT", "post");
}
WP_Query('post_type=".CAROUSEL_CPT);//....