Changing Sidebar In 2023 Theme

I got tired of the bugs in php themes hindering my progress, so I switched to the core wordpress theme 2023. As explained above, I need a 3 column page layout and dynamic sidebars. Using the 2023 theme that doesn’t have a sider bar meant that I need to “dig under the hood” and actually … Read more

Disable single posts, but keep archive

One approach could be forcefully setting 404 status for single post. Please check following example. In case of singular post, query status is set to 404. function theme_slug_customize_single_post() { if ( is_singular( ‘post’ ) ) { global $wp_query; $wp_query->set_404(); status_header(404); } } add_action( ‘wp’, ‘theme_slug_customize_single_post’ );