How to do if in_category(); in WPDM

Viewing 2 posts - 1 through 2 (of 2 total)
#59014

Jimi Heitto
Member

Hi,

I’m having a hard time figuring out how to do this in WPDM?

if ( in_category( ‘fruit’ ) ) {
// do something
}

This “WP” way of doing it doesn’t seem to work.

#59664

Shahjada
Keymaster

You need to use this:

https://codex.wordpress.org/Function_Reference/has_term

The taxonomy name is wpdmcategory

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘How to do if in_category(); in WPDM’ is closed to new replies.