<div class="search-post-type">
<?php echo get_post_type() == 'jetpack-portfolio' ? esc_html__( 'portfolio', 'coup-shop' ) : get_post_type_object( get_post_type() )->labels->name; ?>
</div>
continue;
if( empty($value) ) {
delete_post_meta($post_id, $key); // удаляем поле если значение пустое
continue;
}
$_POST['extra'][$val] = @$_POST['extra'][$val];
add_filter('the_content', function($content){
// Тут регулярки
return $content;
});
if (have_posts()) : while (have_posts()) : the_post();
$content = get_the_content();
// Тут тоже регулярки))
if (have_posts()) : while (have_posts()) : the_post();
ob_start();
the_content();
$content = ob_get_clean();
// Тут тоже регулярки))
if (data.loggedin == true){
document.location.href = ajax_login_object.redirecturl;
}
/* Restore original Post Data
* NB: Because we are using new WP_Query we aren't stomping on the
* original $wp_query and it does not need to be reset with
* wp_reset_query(). We just need to set the post data back up with
* wp_reset_postdata().
*/
wp_reset_postdata();