#wordpress #post #button #search #count
Вопрос:
количество найденных сообщений
$button = carspot_ThemeBtn($post_job_btn_link, ‘btn btn-тема’, ложь, ложь, ложь); $count_posts = wp_count_posts(‘ad_post’); возврат ‘<класс раздела = «стиль раздела героя». $стиль . ‘>
<div class = "container">
<div class = "row">
<div class = "col-lg-7 col-md-7 col-sm-6 col-xs-12">
<div class = "hero-text">
<h1> ' . esc_html($section_title) . '</h1>
<p> ' . esc_html($section_tag_line) . '</p>
<ul>
' . $single_feature . '
</ul>
' . $button . '
</div>
</div>
<div class = "col-lg-5 col-md-5 col-sm-6 col-xs-12">
<img src = "' . trailingslashit(get_template_directory_uri()) . 'images/hero-form-shedow.png" class = "hero-form-top-style" alt = "' . esc_attr__('image not found', 'carspot') . '">
<div class = "hero-form">
<div class = "hero-form-heading">
<h2> ' . esc_html($no_of_ads) . '</h2>
<p>' . esc_html($form_text) . '</p>
</div>
<form action = "' . get_the_permalink($carspot_theme['sb_search_page']) . '">
<div class = "form-group">
<label>' . esc_html__('Sipas Titullit', 'carspot') . '</label>
<input type = "text" class = "form-control" autocomplete = "off" id = "autocomplete-dynamic" name = "ad_title" placeholder = "' . esc_html__('Kerkoni Automjetin sipas Emertimit...', 'carspot') . '" />
</div>
' . $cats_html . '
<div id="select_modal_2" class="margin-top-10"></div>
<div id="select_modals_2" class="margin-top-10"></div>
' . $years_html . '
' . $condition_html . '
' . $tag_html . '
' . $type_html . '
' . $warranty_html . '
' . $body_type_html . '
' . $transmission_html . '
' . $engineSize_html . '
' . $engineType_html . '
' . $assembly_html . '
' . $color_html . '
' . $insurance_html . '
' . $feature_html . '
' . $countries_html . '
' . $price_html . '
' . $radius_html . '
<div class = "form-group">
<button type = "submit" class = "btn btn-lg btn-theme btn-block" >' . esc_html__('Kerko', 'carspot') . '</button>
<a href="https://autogalactic.al/advanced-search/" id="kavancform2">Kërkim i Avancuar</a>
</div>
</form>
</div>
</div>
<img src = "' . $floatCarImgURL . '" class = "hero-car wow slideInLeft img-responsive" data-wow-delay = "0ms" data-wow-duration = "3000ms" alt = "' . __('Imazhi nuk u gjet', 'carspot') . '">
</div>
</div>
</section>';
}
}
это код, который я хочу добавить в функцию