'authorbook',
'posts_per_page' => -1,
);
if (isset($_GET['text'])) {
$textQuerry = $_GET['text'];
}
if (isset($_GET['text']) && $textQuerry != 'all') {
$args = array(
'post_type'=> 'authorbook',
'posts_per_page' => -1,
'meta_key' => '_beautheme_prefix_name',
'meta_value' => $textQuerry,
);
}
$loop = new WP_Query( $args);
wp_reset_postdata();
?>
(post_count); ?>)
have_posts()) {?>
have_posts()) { $loop ->the_post();
$author_avatar = get_post_meta( get_the_ID(),'_beautheme_type_image', TRUE);
$author_prefix_name = get_post_meta( get_the_ID(),'_beautheme_prefix_name', TRUE);
$authorAvatar_ID = beau_get_attachment_id_from_url($author_avatar);
$author_avatar = wp_get_attachment_image( $authorAvatar_ID );
if (!$author_avatar) {
$author_avatar = '

';
}
$classExtra = 'authoritem item-'.$author_prefix_name;
$idExtra = "extra".$i;
if ($i%7==0) {
$data_row = $j;
if ($i > 0) {
$idExtra = "last".$j;
$classExtra .= ' last';
}
}
if ($i == $loop->post_count) {
$idExtra = "last".$j;
}
?>
'authorbook',
'posts_per_page' => 14,
'meta_key' => '_beautheme_prefix_name',
'meta_value' => $text,
);
$loop = new WP_Query( $args);
wp_reset_postdata();
if ($loop->post_count) {
?>
(post_count); ?>)
have_posts()) {?>
have_posts()) { $loop ->the_post();
$author_avatar = get_post_meta( get_the_ID(),'_beautheme_type_image', TRUE);
$author_prefix_name = get_post_meta( get_the_ID(),'_beautheme_prefix_name', TRUE);
$authorAvatar_ID = beau_get_attachment_id_from_url($author_avatar);
$author_avatar = wp_get_attachment_image( $authorAvatar_ID );
if (!$author_avatar) {
$author_avatar = '

';
}
$classExtra = 'authoritem item-'.$author_prefix_name;
$idExtra = "extra".$i;
if ($i%7==0) {
$data_row = $j;
if ($i > 0) {
$idExtra = "last".$author_prefix_name.$j;
$classExtra .= ' last';
}
}
if ($i == $loop->post_count) {
$idExtra = "last".$author_prefix_name.$j;
}
?>