Tag Info

New answers tagged

1

Before amending $query we first have to find out which posts to exclude, which requres two querys (if I can think of a way of doing it in one I'll update the answer). The first will grab a list of distinct ID's of all parent events, for example - SELECT DISTINCT wp_posts.post_parent FROM wp_posts WHERE wp_posts.post_type = "event" AND wp_posts.post_type = ...


0

For the example you posted, the article is styled according to the css rule(s) for category-selling-and-advertising which is defined last (among the category-* classes) in the article's class attribute. You need to intercept the functionality of post_class() to change the order these classes appear. The post_class filter will do the job for you: ...



Top 50 recent answers are included