CSS
8
Вклад в тег
https://elvery.net/demo/responsive-tables/
.btn {
background: url() no-repeat;
width: 100px;
height: 100px;
border: none;
position: relative;
transform: translateY(-50%);
}
div.top_menu_link_container, div.top_menu_link_container_end {
float: left;
height: 31px;
}
// Shortcode for projects [projects-list posts="3"]
function projects_listing_parameters_shortcode( $atts ) {
ob_start();
$args = shortcode_atts( array (
'type' => 'projects',
'posts' => 6,
'cat' => ''
), $atts );
$options = array(
'post_type' => $args['type'],
'posts_per_page' => $args['posts'],
'tax_query' => array(
array (
'taxonomy' => 'project',
'field' => 'slug',
'terms' => $args['cat'],
)
),
);
$query = new WP_Query( $options );
if ( $query->have_posts() ) $item = 0; {
while ( $query->have_posts() ) : $query->the_post(); $item++;
echo '<div class="item item-' . $item . '">';
get_template_part( 'template-parts/project-cards', get_post_format() );
echo '</div>';
endwhile;
wp_reset_postdata();
$myvariable = ob_get_clean();
return $myvariable;
}
}
add_shortcode( 'projects-list', 'projects_listing_parameters_shortcode' );