Update CPT for funds
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 8 Aug 2019 19:56:01 +0000 (15:56 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 8 Aug 2019 19:56:01 +0000 (15:56 -0400)
Sot has_archive and publicly_queryable to false.

lib/funds.php

index 389e8f0..af22942 100644 (file)
@@ -51,9 +51,9 @@ function custom_post_type() {
                'show_in_admin_bar'     => true,
                'show_in_nav_menus'     => true,
                'can_export'            => true,
-               'has_archive'           => true,
+               'has_archive'           => false,
                'exclude_from_search'   => false,
-               'publicly_queryable'    => true,
+               'publicly_queryable'    => false,
                'capability_type'       => 'page',
        );
        register_post_type( POST_TYPE, $args );
@@ -137,7 +137,7 @@ function funds_shortcode($atts)
         echo '</ul>';
         echo '</div>';
        }
-        
+
     }
     echo '</div>';
     $output = ob_get_contents();