Forum Replies Created
Viewing 6 posts - 1 through 6 (of 6 total)
-
AuthorPosts
-
alasdaircParticipantTried it now, has fixed the problem. Thanks Steve.
alasdaircParticipantAh – and because I used the built-in status ‘Public’ I made ALL public posts / pages etc hidden?
That makes sense, I’ll try this out tomorrow.
alasdaircParticipantMy post type:
$post_types['resource'] = [ 'labels' => piklist('post_type_labels', 'Resource'), 'public' => true, 'description' => 'Resources for download.', 'supports' => array( 'title', 'thumbnail' ), 'status' => array( 'hidden' => array( 'label' => 'Hidden' ), 'publish' => array( 'label' => 'Published' ), ), 'taxonomies' => array( 'category', 'post_tag' ), 'publicly_queryable' => false, 'show_in_menu' => true, 'query_var' => true, 'capability_type' => 'post', 'has_archive' => true, 'rewrite' => [ 'slug' => 'resources', 'with_front' => false ], 'hierarchical' => false, 'show_ui' => true, 'menu_icon' => 'dashicons-media-document', 'menu_position' => 21, 'hide_meta_box' => [ 'submitdiv', 'author', 'wpseo_meta', 'customsidebars', ], ];
alasdaircParticipantYes – has that been deprecated?
alasdaircParticipantI’ve tried a bunch of things – restarting PHP-fpm, setting permalinks to default, disabling opcache.
alasdaircParticipantThanks Steve,
That’s funny! Sorry to ruin the surprise, google was indexing the pages though so I doubt it’d have stayed hidden for long..
Will definitely try and help improve the docs where I can.
-
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)