0
votes
3answers
178 views

2 wordpress loops showing 1 post from same post type - how to avoid showing the same post?

I got to two loops in my template files. Both querying the same thing essentially. This loop in my header: $testimonial_head = new WP_Query(array( 'posts_per_page' => 1, 'post_type' ...
0
votes
2answers
2k views

Exclude current post ID from loop in sidepbar.php

Currently all the below bit of code is doing is showing 3 random posts from the same category that the current page resides in. So if the current page falls in the artists category, for example, show ...
0
votes
1answer
241 views

Conditionaly exclude post from certain category from homepage sidebar?

how to exclude posts from one category to not show on sidebar on homepage only when I explicitly dont want that particular post, in all other cases post will be displayed. I had try with plugin "WP ...