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

#14084
hezuf123
Participant

My bad, this snippet actually works, I just didn’t realize I had to replace “123”.

add_filter( 'wp_show_posts_shortcode_args', function( $args, $settings ) {
    if ( 123 === $settings['list_id'] ) {
        $args['post__in'] = array( 305512, 334934, 332645, 334067 );
    }

    return $args;
}, 10, 2 );

However, what I still don’t get to work is getting the output of this to display:

$scores = get_crp_posts_id();

$rel_posts = array_column( (array) $scores, 'ID' );