Merhaba, aşağıdaki kodu
"echo $urunayrac . ' ' . $urunfiyat;" yerine $argumen = array(
'meta_key' => '_price',
'orderby' => 'meta_value_num',
'order' => 'ASC',
'limit'=> -1,
'category' => array( 'denemekategorisi' ),
'status' => 'publish',
);
$producter = wc_get_products( $argumen );
foreach ($producter as $producted) {
$urunbaslik = $producted->get_name();
$urunfiyat = number_format($producted->get_price(), 2, '.', '');
$urunid = $producted->get_id();
$urunadi = explode(" ", $urunbaslik);
$urunayrac = str_replace( array("@", "_", "."), '', $urunadi[1]);
echo $urunayrac . ' ' . $urunfiyat;
}buradaki kodlar gibi çıktısını almak istiyorum. $html = '<div class="urun">';
$html .= '<select id="hesaplar">
<option value="1" selected>1. seçenek</option>
<option value="2">2. seçenek</option>
<option value="3">3. seçenek</option>
</select>';
$html .= '</div>';
return $html;
yardımcı olabilir misiniz?