the_post_thumbnail( array( ххх, ххх, 'bfi_thumb' => true ) );
<?php
$main ='';
$thumb ='';
while ( have_posts() ) : the_post();
$image = get_field('img');
$main .= sprintf('<div class="slider-for"><div><div style="background-image: url(%s)" class="slider__inner"></div></div></div>', $image['url']);
$thumb .= sprintf('<div><div style="background-image: url(%s)" class="slider__inner"></div></div>', $image['url']);
endwhile;
printf('<div class="slider-content">%s</div><div class="slider-nav">%s</div>',$main,$thumb);
add_filter('manage_posts_columns', 'my_posts_columns_id', 5);
add_action('manage_posts_custom_column', 'my_posts_custom_id_columns', 5, 2);
function my_posts_columns_id($columns){
$columns['my_post_id'] = __('ID');
return $columns;
}
function my_posts_custom_id_columns($column_name, $id){
if($column_name === 'my_post_id'){
echo $id;
}
}
function cs_addto_usermeta_carosel() {
$user_data = get_userdata( get_current_user_id() );
if( 'subscriber' === $user_data->roles[0] )
wp_die();
/** Остальной код **/
}
add_action("wp_ajax_nopriv_cs_addto_usermeta_carosel", "cs_addto_usermeta_carosel");
<?php
$array = new WP_Query(array(/*бла-бла-бла*/));
wp_send_json( $array )
span.amount {
font-family: 'Times New Roman';
}