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

#14160
hezuf123
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.

  • This reply was modified 1 year, 4 months ago by hezuf123.
  • This reply was modified 1 year, 4 months ago by hezuf123.