Home › Forums › Pro Support › Show posts in current category and specific tag › Reply To: Show posts in current category and specific tag
March 23, 2020 at 4:29 am
#14160
Participant
$scores = get_crp_posts_id();
$rel_posts = array_column( (array) $scores, 'ID' );
add_filter( 'wp_show_posts_shortcode_args', function( $args, $settings ) {
if ( 1234 === $settings['list_id'] ) {
$args['post__in'] = $rel_posts;
}
return $args;
}, 10, 2 );
wpsp_display( 1234, $args );
This doesn’t work either unfortunately.