true, 'orderby' => 'post__in', 'cat' => $cat_id, 'posts_per_page'=> $num_of_posts ); $posts = get_posts( $args ); if ( ! empty( $posts ) ) { $i = 1; foreach ( $posts as $key => $post ) { $post_id = $post->ID; $img_array = null; if ( has_post_thumbnail( $post_id ) ) { $img_array = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), '' ); } if ( isset( $img_array ) ) { $content[$i]['img_array'] = $img_array; } $content[$i]['url'] = get_permalink( $post_id ); $content[$i]['title'] = get_the_title( $post_id ); $content[$i]['alt'] = get_the_title( $post_id ); $content[$i]['date'] = get_post_meta( $post_id, 'academic-event-date' ); $content[$i]['time-from'] = get_post_meta( $post_id, 'academic-event-time-from', true ); $content[$i]['time-to'] = get_post_meta( $post->ID, 'academic-event-time-to', true ); $content[$i]['location'] = get_post_meta( $post_id, 'academic-event-location', true ); $i++; } } // Assin value if not empty if ( ! empty( $content ) ) { $input = $content; } return $input; } endif; // Category blog four section content details. add_filter( 'academic_filter_cat_blog_four_section_details', 'academic_cat_blog_four_section_details' ); if ( ! function_exists( 'academic_render_cat_blog_four' ) ) : /** * Add cat blog four * * @since Academic 0.3 */ function academic_render_cat_blog_four( $section_details ) { $options = academic_get_theme_options(); // Bail if no section details input. if ( empty( $section_details ) ) { return; } ?>

, "slidesToScroll": , "infinite": , "speed": 800, "dots": , "arrows":, "autoplay": }'>
<?php echo esc_attr( $content['title'] );?>

  • -