Display a widget on a CPT archive page?

[ad_1]

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 met

Choose ACF field
First Name

Condition
Is Equal to

Conditional Value
Andrew (he’s the first person displayed in the archive page)

(I also tried…)

Condition
Is not empty

Conditional value
(left blank)

But nothing seems to work! Any suggestions?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer