>
array($post_id), 'posts_per_page' => 1, 'post_status' => 'publish', 'post_type' => 'product', 'tax_query' => array( array( 'taxonomy' => 'product_cat', 'field' => 'id', 'terms' => $categories_as_array ))); $r_single = new WP_Query($query_args); if ($r_single->have_posts()) { $r_single->the_post(); global $product; ?> ID, 'product_cat' ); foreach ( $terms as $term ) $cats_array[] = $term->term_id; // get all posts in current categories $query_args = array('posts_per_page' => -1, 'post_status' => 'publish', 'post_type' => 'product', 'tax_query' => array( array( 'taxonomy' => 'product_cat', 'field' => 'id', 'terms' => $cats_array ))); $r = new WP_Query($query_args); // show next and prev only if we have 3 or more if ($r->post_count > 2) { $prev_product_id = -1; $next_product_id = -1; $found_product = false; $i = 0; $current_product_index = $i; $current_product_id = get_the_ID(); if ($r->have_posts()) { while ($r->have_posts()) { $r->the_post(); $current_id = get_the_ID(); if ($current_id == $current_product_id) { $found_product = true; $current_product_index = $i; } $first_product_index = ''; $is_first = ($current_product_index == $first_product_index); if ($is_first) { $prev_product_id = get_the_ID(); // if product is first then 'prev' = last product } else { if (!$found_product && $current_id != $current_product_id) { $prev_product_id = get_the_ID(); } } if ($i == 0) { // if product is last then 'next' = first product $next_product_id = get_the_ID(); } if ($found_product && $i == $current_product_index + 1) { $next_product_id = get_the_ID(); } $i++; } if ($prev_product_id != -1) { ShowLinkToProduct($prev_product_id, $cats_array, "next"); } if ($next_product_id != -1) { ShowLinkToProduct($next_product_id, $cats_array, "prev"); } } wp_reset_postdata(); } } ?>
  • ID ); ?> ID ); ?>,

ID ); ?> ID ); ?>, ID, 'product_tag' ) ); echo woocommerce_template_single_rating(); ?>
get_tags( ', ', '' . _n( 'Tag:', 'Tags:', $tag_count, 'woocommerce' ) . ' ', '' ); print($product_tag); ?>
ID, '_beautheme_product_with_soudcloud', TRUE); $video_EMbed = get_post_meta($post->ID, '_beautheme_product_with_video', TRUE); $mp3Files = get_field('field_files_mp3'); if($soundCloud_Url) $mediaPlay = $wp_embed->run_shortcode('[embed id="soundcloud-play" width="360" height="320"]'.$soundCloud_Url.'[/embed]'); if($video_EMbed) $video_EMbed_play = $wp_embed->run_shortcode('[embed width="780" height="440"]'.$video_EMbed.'[/embed]'); if (function_exists('bebostore_findExtension')) { if (bebostore_findExtension($video_EMbed) == 'mp4') { $video_EMbed_play = do_shortcode('[video width="780" height="440" mp4="'.$video_EMbed.'"] [/video]'); } } ?>
    $value) { $activeClass = ""; if ($i ==1) { $songName = $value['file_mp3_name']; } ?>
ID; $publishing_year_item = get_post_meta( get_the_ID(), '_beautheme_publishing_year', true ); $publishing_page = get_post_meta( get_the_ID(), '_beautheme_page_count', true ); $editorial = get_post_meta( get_the_ID(), '_beautheme_editorial_reviews', true ); $ISBN = get_post_meta( get_the_ID(), '_beautheme_product_ISBN', true ); ?>

ISBN:
get_sku()!='') { ?> SKU: get_sku());?>
:
:
:

ID; $year_author = get_post_meta( $id_author, '_beautheme_year_job', true ); $url_ava = get_post_meta( $id_author, '_beautheme_type_image', true ); $url_fb = get_post_meta( $id_author, '_beautheme_author_facebook', true ); $url_tt = get_post_meta( $id_author, '_beautheme_author_twitter', true ); $url_rss = get_post_meta( $id_author, '_beautheme_author_rss', true ); ?>