'dsm_header_footer',
'meta_key' => 'dsm-header-footer-meta-box-options',
'meta_value' => '404',
'meta_type' => 'post',
'meta_query' => array(
array(
'key' => 'dsm-header-footer-meta-box-options',
'value' => '404',
'compare' => '==',
'type' => 'post',
),
),
);
$fourzerofour_template = new WP_Query(
$fourzerofour_args
);
if ( $fourzerofour_template->have_posts() ) {
$fourzerofour_template_ID = $fourzerofour_template->post->ID;
$fourzerofour_template_shortcode = do_shortcode( get_post_field( 'post_content', $fourzerofour_template_ID ) );
?>
>
'dsm_header_footer',
'meta_key' => 'dsm-header-footer-meta-box-options',
'meta_value' => 'footer',
'meta_type' => 'post',
'meta_query' => array(
array(
'key' => 'dsm-header-footer-meta-box-options',
'value' => 'footer',
'compare' => '==',
'type' => 'post',
),
),
);
$footer_template = new WP_Query(
$footer_args
);
$footer_css_args = array(
'post_type' => 'dsm_header_footer',
'meta_key' => 'dsm-css-classes-meta-box-options',
'value' => '',
'meta_type' => 'post',
'meta_query' => array(
array(
'key' => 'dsm-css-classes-meta-box-options',
'value' => '',
'compare' => '!=',
'type' => 'post',
),
),
);
$footer_css_template = new WP_Query(
$footer_css_args
);
if ( $footer_template->have_posts() ) {
if( !function_exists('dsm_fix_shortcodes') ) {
function dsm_fix_shortcodes($content){
$array = array (
'