wordpress: how to check if the slug contains a specific word?

I’m trying to use a conditional statement to check if either of two words (blog & news) appear in the slug. If one shows up I will display one menu, if the other then its corresponding menu shows.

Related posts

Leave a Reply

2 comments