1

So I am modifying the main query and basically asking:

if is_post_type_archive('event') {

This evaluates to true if the URL is:

http://localhost:8886/jeanmonnetprojects.com.au/event

But is false when I have a get parameter:

http://localhost:8886/jeanmonnetprojects.com.au/event?category=categoryX

I am sure this code was working before and now it's giving me false when I include the GET...any pointers are greatly appreciated.

0

My fault, I had defined the slug as 'events', hence I should have used:

http://localhost:8886/jeanmonnetprojects.com.au/events?category=categoryX

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.