If you're looking to hide a sidebar from a custom-post-type (CPT) in WordPress, you can make use of the following code: This is something I created for the custom-post-type job_listing in WP Job Manager plugin. This code basically adds a body_class filter and the runs my function ob_no_sidebar. My function will check if the current …
Continue reading "Hide Sidebar From A Custom Post Type (CPT) In WordPress"