Support » Plugin: Pages with category and tag » Compatible with is_category ()?

  • Resolved jamestag

    (@jamestag)


    Is “Pages with category and tag” compatible with the WordPress function is_category()? For example, is_category(“examplecategory”)?

    I’m assuming not as it doesn’t appear to work.

    Can you suggest a function or php code that will test if a page has been assigned a category by “Pages with category and tag”?

    Thank you.

Viewing 1 replies (of 1 total)
  • Plugin Author YAHMAN

    (@back2nature)

    Hello,
    I checked, is_category() doesn’t seem to work.

    You can use has_term() as an alternative.

    example:
    has_term( ‘uncategorized’ , ‘category’ )

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.