• Hi hope you are doing well.
    I tried a code like this below, with the category ID being 19

    <?php if ( in_category( ‘Travel Reviews’ ) || post_is_in_descendant_category( 19 ) )
    ?>

    But it did not work, I am not sure if it is because of the Avada theme or if my code is wrong

    Thank you

    https://wordpress.org/plugins/widget-logic/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter teclive

    (@teclive)

    Changed my code to

    in_category( 'Travel Reviews' ) || post_is_in_descendant_category( 19 ) )

    but still nothing

    Thread Starter teclive

    (@teclive)

    Ok I also tried this

    wp_reset_query()is_category(19,11,10,12) || (is_single() && in_category(19,11,10,12))

    doing the reset query in case it was the theme, then the
    is_category(19,11,10,12) || (is_single() && in_category(19,11,10,12))

    so if it is one of those categories, or a post within one of those categories, then that given widget would work, but still nothing.
    🙁

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘using with Avada theme’ is closed to new replies.