John Parris

In the woods…

Menu
Social Links
Search
Skip to content
  • Home
  • Topics
    • Musings
    • Quotes
    • WordPress
  • Photos
  • Plugins
  • Connect
    • Email
    • RSS
    • Github
  • Contact
  • Twitter
  • Instagram
  • GitHub

WordPress

Themes, plugins, and code snippets.

How to remove WordPress post meta boxes

The WordPress post screen contains a number of meta boxes that allow you to do things with your posts. For example, you can select the post category in the Categories meta box, and you can control the comments setting for individual posts in the Discussion meta box. But, what if you want to prevent some … Continue reading→

September 27, 2012John Parris WordPress

Redirect WordPress users during logout

Normally in WordPress when a user logs out, he is directed to the login page. But what if we want to redirect users to another page? No problem. With the following code we can redirect users to the home page when they log out.   What if we need to redirect users to a special … Continue reading→

September 3, 2012John Parris WordPress

Remove the WordPress logo from the admin bar

If you’re like me, you’ve accidentally clicked the WordPress logo in the admin bar a hundred times while meaning to go to the main Dashboard screen. That logo just gets in my way. I already know about WordPress, so I don’t need a link to the “about” page cluttering up my admin bar. Using the … Continue reading→

August 22, 2012John Parris WordPress

Redirect WordPress users during login

Normally in WordPress when a user logs in, he is directed to some place in the administrative back end. If he is assigned the role of Subscriber, this usually sends him to his profile page, which isn’t very useful under most circumstances. If he is assigned the role of Contributor, Author, Editor or Administrator, he … Continue reading→

August 22, 2012John Parris WordPress

Multiple excerpt lengths in WordPress

The default WordPress excerpt length is 55 words. Sometimes we need to change this, and sometimes we need multiple excerpt lengths depending on where we are. For example, we might want a short excerpt on the home page and the default excerpt for everywhere else – archives, author pages, etc. The example above changes the … Continue reading→

August 18, 2012John Parris WordPress

How to disable bbPress breadcrumbs

bbPress doesn’t offer an option to disable the breadcrumb navigation, but we can easily do it with a single line of code. Add this to your functions.php or to a simple plugin to turn off bbPress breadcrumbs.

July 28, 2012John Parris WordPress

Prevent Contact Form 7 from loading on every page

Contact Form 7 is a great contact form plugin for WordPress, but it loads its Javascript and CSS on every page on your site, even when you don’t have a contact form there. Let’s fix that by loading the scripts and styles only on the pages that need them. Add the following code to your … Continue reading→

July 14, 2012John Parris WordPress 7 Comments

Posts navigation

→
←
© 2025 John Parris