Я новичок в WordPress и я с помощью RT-Theme 15 и я хочу, чтобы показать всеFetch всех продуктов категории в пользовательском посте типа в WordPress
продукт ТАМОЖЕННОГО ПОСТА типа. Когда я покупаю продукты, все продукты не поступают
определенной категории. только 9 продукта выходит из 15.
здесь код whic показывает 9 продуктов: -
<?php
#
# rt-theme product loop
#
global $args,$wp_query;
//column
$box_counter = 0;
if(is_tax()) $args = array_merge($wp_query->query, $args);
query_posts($args);
$product = array();
$postCount = 0;
if (have_posts()) : while (have_posts()) : the_post();
?>
<?php
//box class
$product[$postCount]['title'] = get_the_title();
$product[$postCount]['thumb'] = find_image_org_path(get_post_meta($post->ID, THEMESLUG.'product_image_url', true));
$product[$postCount]['image'] = @vt_resize('', $thumb, $w, $h, ''.$crop.'');
$product[$postCount]['short_desc'] = get_post_meta($post->ID, THEMESLUG.'short_description', true);
$product[$postCount]['permalink'] = get_permalink();
$product[$postCount]['watt'] = get_post_meta($post->ID, 'wpcf-watt', true);
$postCount = $postCount + 1;
?>
<?php endwhile?>
<?php
echo "<pre>";print_r($product);
?>
<?php endif; wp_reset_query();?>
Но я хочу все продукты в массив. Я не знаю, как показать все продукты и
где настройка, которую я должен изменить, чтобы показать все продукты.