We're merging with GenerateBlocks! Learn more here.

Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Show posts in current category and specific tag Reply To: Show posts in current category and specific tag

#14177
Tom
Keymaster

Hmm, I’m not sure what’s going on in that case.

You could try debugging the args:

$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;
    }

    // This should output your IDS for the post__in value.
    var_dump($args);

    return $args;
}, 10, 2 );

wpsp_display( 1234, $args );

Are they visible in your args?