if (isset($_POST['phone'])) {$phone = $_POST['phone'];}
if (isset($_POST['email'])) {$email = $_POST['email'];}
if (isset($_POST['text'])) {$phone = $_POST['text'];}
if (isset($_POST['kurs'])) {$phone = $_POST['kurs'];}
if (isset($_POST['formData'])) {$formData = $_POST['formData'];}
if ($rand == 2 ) {
$args = array(
'post_type' => 'wsp_site',
'portfolio' => $port,
'numberposts' => $count,
'tax_query' => array(
array(
'taxonomy' => 'portfolio',
'field' => 'term_id',
'terms' => $id_port,),),
'meta_key' => 'wsp_weight',
'orderby' => 'meta_value_num',
'order' => 'ASC',
);
wsp_view ($sites = get_posts ($args), $col);
}
<?php if ( in_category(47) ): ?>
<div><a href="#">Кнопка на правила заказа</a></div>
<?php endif; ?>
$cat_n = 47;
if ( in_category($cat_n) ) {
include(TEMPLATEPATH . '/beidj.php');}