Support » Plugin: Widget Logic » conditional tags for individual CPTs

  • baggi-t


    How do I target my individual CPT archives using conditional tags? I have tried is_archive(‘cpt1’) and is_post_type_archive($cpt1) and !is_etc combinations but it seems my conditional tags select all my CPTs and can’t distinguish between them. What am I doing wrong?
    Thanks, Tim

Viewing 1 replies (of 1 total)
  • Did you resolve this?
    If you try is_singular(‘your_custom_post_type_id’) could be a start.

    Let me know

    • This reply was modified 2 years, 11 months ago by Miguel.
Viewing 1 replies (of 1 total)
  • The topic ‘conditional tags for individual CPTs’ is closed to new replies.