'', ), $atts, 'a_shortcode' ); $id = isset( $atts['id'] ) ? intval( $atts['id'] ) : ''; if ( empty( $id ) ) { return ''; } $shortcode = get_post( $id ); if ( ! $shortcode || ! is_a( $shortcode, 'WP_Post' ) || 'publish' !== $shortcode->post_status ) { return ''; } $is_title = 'yes' === get_option( 'ascodes_shortcode_title' ) ? get_option( 'ascodes_shortcode_title' ) : get_post_meta( $shortcode->ID, 'ascodes_shortcode_title', true ); $is_sub_title = 'yes' === get_option( 'ascodes_shortcode_sub_title' ) ? get_option( 'ascodes_shortcode_sub_title' ) : get_post_meta( $shortcode->ID, 'ascodes_shortcode_sub_title', true ); $is_content = 'yes' === get_option( 'ascodes_shortcode_content' ) ? get_option( 'ascodes_shortcode_content' ) : get_post_meta( $shortcode->ID, 'ascodes_shortcode_content', true ); ob_start(); ?>

post_title ); ?>

post_content ) ) : ?>
post_content ); ?>