Support

Account

Home › Forums › General Issues › Single Post Checkbox Effecting Archives › Reply To: Single Post Checkbox Effecting Archives

  • This is for the checkbox ( true/false ). I could also use something like this :

    $checked = get_field( '_custom_field_key' );

    All i want to do is add the checkbox to all edit screens for single posts/pages and all archive type pages to show the default widgets or when checked, the custom widgets.

    Seems like get_field only works on single posts/pages and NOT on archive page types?

    acf