• Peyton

    (@peytongregory)


    how should the code in the conditional logic box be formatted?

    I want the widget to only appear on the archive page of a custom post type labeled “physicians”

    I’ve tried many variations of the following code which doesn’t work.

    is_post_type_archive(‘physicians’);

    is_archive();

    is_archive(‘physicians’);

    <?php if ( is_post_type_archive(‘physicians’) ) {} ?>

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Conditional Logic Doesn’t work’ is closed to new replies.