.first-block {
height:650px;
display:grid;
width:100%;
grid-template-columns:minmax(5%,auto) minmax(auto,500px) minmax(auto,670px) minmax(5%,auto);
position:relative;
}
.first-block__images {
grid-column:1/3;
position:absolute;
left:0;
top:0;
width:100%;
height:100%;
}
$post_id = wp_insert_post( $post_information );
if ( isset( $_POST['elements'] ) ) {
$images = $_POST['elements'];
$images = explode( ',', $images );
update_post_meta( $post_id, '_user_images', serialize( $images ) );
}
url: 'http://site.ru/wp-admin/admin-ajax.php',
global $wpdb;
$user = get_userdata( $comment->user_id );
$user_id = $user->ID;
$comment_count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) AS total FROM $wpdb->comments WHERE comment_approved = 1 AND user_id = %s", $user_id ) );
echo $comment_count;
remove_theme_support( 'wc-product-gallery-zoom' );
remove_theme_support( 'wc-product-gallery-lightbox' );
remove_theme_support( 'wc-product-gallery-slider' );