Skip to content

Omkar Bhagat

If you can't do great things, do small things in a great way!

Month: January 2019

Posted on January 22, 2019

Hide Sidebar From A Custom Post Type (CPT) In WordPress

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"

Archives

  • January 2019 (1)
  • July 2018 (2)
  • February 2018 (2)
  • September 2017 (1)
  • August 2017 (1)
  • July 2017 (2)
  • January 2017 (2)
  • December 2016 (4)
  • November 2016 (1)
  • October 2016 (14)

Most viewed

  • Replacing String in a file using Python
  • Volume too low on YouTube videos? Here's how to fix that!
  • How to delete all the Emails from Gmail's promotions tab
  • Adobe Premiere Pro Crashes At Startup [Fixed]
  • How to get rid of PKF files generated by Adobe Audition?
  • Fix "Could not initialize photoshop because of a program error"

Recent Posts

  • Hide Sidebar From A Custom Post Type (CPT) In WordPress
  • Creating A Basic WordPress Plugin: AwsmPwsm!
  • Blocking external requests from your WordPress site
  • My Keyboard Setup For Macbook Pro 13″
  • Nikon D5500 Video Recording Not Working? [Fix]
  • Adobe Premiere Pro Crashes At Startup [Fixed]
  • Fix “Could not initialize photoshop because of a program error”
  • Fixing Jetpack Connection Issues
  • How To Clear DNS Cache In Google Chrome?
  • Anyone can be a hero
  • Replacing String in a file using Python
  • How I Make Doodle Videos?
  • Running The First JAVA Program
  • How To Check If Your Operating System is 32bit or 64bit?
  • Two Tips To Stay Productive At Work
  • How to get rid of PKF files generated by Adobe Audition?
  • How to transfer videos with subtitles to iPhone using VLC player
  • How to set off an Alarm on Macbook when the battery is full?
  • How to connect to a Wireless Printer?
  • Unlock iPhone without having to press the Home button (iOS 10 update)
  • How to transfer music to iPhone via iTunes?
  • How to install WordPress on localhost using XAMPP?
  • How to delete all the Emails from Gmail’s promotions tab
  • One small tip for Beginner Bloggers – Content is the King
  • Google Analytics – Using RegEx to find a word starting with and ending with
  • Volume too low on YouTube videos? Here’s how to fix that!
  • Statistics – Finding Mean, Variance and Standard Deviation
  • One small Tip to get better performance on Apple devices
  • How to rename WD Elements hard disk?
  • Subtracting smaller number from greater number
Powered by WordPress.com.