Support

Account

Home Forums Add-ons Options Page Option field value not loading on Archive page Reply To: Option field value not loading on Archive page

  • encountering this as well. noticed my Option fields disappeared only when i added a custom post type to the general archive.

    function archive_include_cpt( $query ) {
        if( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) {
            $query->set( 'post_type', array( 'project', 'post' ));
            return $query;
        }
    }
    add_filter( 'pre_get_posts', 'archive_include_cpt' );

    (via)

    maybe this is helpful? bummer this thread is marked as solved. perhaps i’ll start another?