How to do if in_category(); in WPDM

in Download Manager Free

Viewing 2 posts - 1 through 2 (of 2 total)
Jun 13, 2017 at 1:06 pm
#59014
Member
Jimi Heitto
OP

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.

Jun 28, 2017 at 8:21 pm
#59664
Keymaster
Shahjada
Staff

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.