$ch=curl_init();
curl_setopt($ch, CURLOPT_URL,
'https://api.telegram.org/bot'.$token.'/sendMessage');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS,
'chat_id='.$chat_id.'&text='.urlencode($text).'&parse_mode=html');
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
$result=curl_exec($ch);
curl_close($ch);
global $product;
$attachment_ids = $product->get_gallery_image_ids();
foreach ( $attachment_ids as $attachment_id ) {
$full_src = wp_get_attachment_image_src( $attachment_id, 'full' );
echo "<img src='" .full_src[0] ."'>
}
category_name=noce
ищет в дефолтных категориях, а у вас для поиска по своей таксономии нужно строить запрос со своей таксономией category_door https://wp-kama.ru/function/wp_query#taxonomies.category_door=noce
<style>
.element:nth-child(1){ background-image: url(...) }
.element:nth-child(2){ background-image: url(...) }
...
</style>
<div class="element">...</div>
<div class="element">...</div>
...
carbon_get_post_meta( get_the_ID(), 'photo' )
carbon_get_post_meta( get_queried_object_id(), 'photo' )