Display a widget on a CPT archive page?
-
I’m trying to get a widget to display on the archive page of a CPT called “people”. I’ve tried using the conditional logic field, entering
is_post_type_archive('people');
This isn’t working. (I’ve tried it with and without the trailing semicolon; which is correct?)
I’ve also tried using the ACF method and a field in the People CPT:
Hide/Show
Show when Condition’s metChoose ACF field
First NameCondition
Is Equal toConditional Value
Andrew (he’s the first person displayed in the archive page)(I also tried…)
Condition
Is not emptyConditional value
(left blank)But nothing seems to work! Any suggestions?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Display a widget on a CPT archive page?’ is closed to new replies.