Repo | Release | Link | Client | Features | Developer |
---|---|---|---|---|---|
repo | 16/12-24 | link | Haavind | featuredContentt2 | Alex |
Functionality
List t2 featured content in an archive loop using the block render function.
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
echo wp_kses_post( T2\BlockLibrary\FeaturedSinglePost\render( [
'postId' => get_the_ID(),
'postType' => get_post_type(),
] ) );
}
wp_reset_postdata();
}
Dependencies
T2