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

#13943
hezuf123
Participant

This doesn’t work unfortunately.

$scores = get_crp_posts_id();

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

print_r( $rel_posts )

Gives out:

Array ( [0] => 305512 [1] => 334934 [2] => 332645 [3] => 334067 )

So this part does seem to work.

But when I add

$args = array(
    'post__in' => $rel_posts,
);

wpsp_display( 1234, $args );

It just displays the latest posts with no filter. So it doesn’t seem to take the ID’s into account.