芝麻web文件管理V1.00
编辑当前文件:/home/seolotod/sthwholesaler.com/wp-content/themes/woodmart/inc/shortcodes/size-guide.php
'', 'id' => '', 'el_class' => '', 'css' => '', 'title' => 1, 'description' => 1, ); $element_args = wp_parse_args( $element_args, $default_args ); $wrapper_classes .= ' ' . $element_args['el_class']; if ( function_exists( 'vc_shortcode_custom_css_class' ) ) { $wrapper_classes .= ' ' . vc_shortcode_custom_css_class( $element_args['css'] ); } if ( ! $element_args['id'] ) { return ''; } $id = $element_args['id']; if ( 'inherit' === $id ) { global $post; $sguide_post_id = get_post_meta( $post->ID, 'woodmart_sguide_select' ); if ( ! empty( $sguide_post_id[0] ) && 'none' !== $sguide_post_id[0] ) { $id = $sguide_post_id[0]; } else { $terms = wp_get_post_terms( $post->ID, 'product_cat' ); if ( $terms ) { foreach ( $terms as $term ) { if ( get_term_meta( $term->term_id, 'woodmart_chosen_sguide', true ) ) { $id = get_term_meta( $term->term_id, 'woodmart_chosen_sguide', true ); } } } } } $sguide_post = get_post( $id ); if ( ! $sguide_post || 'inherit' === $id ) { return ''; } $size_tables = get_post_meta( $sguide_post->ID, 'woodmart_sguide' ); if ( ! $size_tables ) { return ''; } ob_start(); ?>
post_title && $element_args['title'] ) : ?>
post_title ); ?>
post_content && $element_args['description'] ) : ?>
post_content ); ?>