10 Things you did not know about WordPress

Home » Blog » Code » 10 Things you did not know about WordPress

One thing I love equally as much as WordPress is sharing (my) knowledge. If I’m asked to share my knowledge about WordPress then I’m most definitely winning. Big time. Recently I was asked to speak at WordCamp Sevilla in Spain, which I gladly did. WordCamp Sevilla was a two day event and I got to do a presentation on both days. Fun times for sure.

This post is about the first presentation I did which I dubbed: 10 Things you did not know about WordPress. I’m assuming a lot here, but just roll with me ;).

  1. Empty Trash Automagically

    WordPress will allow you to delete it’s Trash can on set intervals. This is extremely handy when you’ve got clients using your site expecting that hitting delete really means delete. All you have to do is add this piece of code to your wp-config.php:

    define( 'EMPTY_TRASH_DAYS', 1 );

    Obviously the 1 stands for the number of days you intend to keep the deleted posts and pages available in the WordPress trash can.

  2. Change Your Autosave Interval

    When you’ve worked on a post before and suddenly you’ve lost your internet connection and upon reboot discovered your post was nowhere near as complete as you thought you had, then this solution is for you. WordPress will actually allow you to set the autosave interval to the exact amount of seconds you so desire. Pretty nifty eh? Again, wp-config.php comes to the rescue here. Just add the following code and specify the preferred amount of seconds.

    define( 'AUTOSAVE_INTERVAL‘, 160 );

  3. Edit Images

    Most people don’t know this, but once you’ve finished uploading your images to WordPress, there are quite a few things left you can do with said images. A while ago I made a screencast demonstrating some of the possibilities.


  4. Maintenance.php
    When you update WordPress, WordPress plugins or WordPress themes you, as a visitor, sometimes will notice a notification that the site is currently under maintenance. This notification will be displayed without any style on a white background. Depending on your server setup this message might actually be displayed a few minutes instead of seconds. This, of course, looks awkward. Luckily WordPress allows for you to change how that plain look. All you need to do is create a maintenance.php file and place that in your /wp-content/ folder. An example can be found here. Basically, you can use whatever HTML and PHP you like, but no WordPress PHP code as WordPress is not loaded when viewing that page.
  5. oEmbed
    I am amazed how many of you out there are completely ignorant about what I consider one of WordPress’ best media functions. oEmbed allows you to paste a single URL from, for example, YouTube, Vimeo, Flickr in your HTML editor and WordPress will automagically use the embed code and display the rich media according to plan. No need for WordTube kinda WordPress plugins. Just use core. Check the codex page on oEmbed for a full list.
  6. Media Settings

    Most WordPress installations I come across with don’t make proper use of the Media settings. What I mean with that you can make use of the settings there. For instance, if your max width for a post is 580px you can set your medium width to that width. This way, when selecting to add media via the editor, you can pick a format that will automatically have your images perfectly fitted to the max with of your theme. No need to fiddle around in photoshop beforehand.

  7. Use Child Themes

    If you’re still not using child themes in this day and age, then you really need to sit down and think this through. There is not an easier way to develop, both in effort and time. One of the many reasons I use Genesis as my parent theme framework is because it’s fully optimized for working with child themes. Discover more here.

  8. Use the fullscreen mode

    WordPress 3.2 came with a beautiful new and improved fullscreen editor. You can find it your TinyMCE menu bar. Go ahead and try it!

  9. Screen options. Try them.

    One of the things I do by default when handing over a carefully crafted custom WordPress site to my client is making sure his login will show only what is necessary for him. Meaning, I remove everything on each and every single screen WordPress provides that doesn’t need to be there. How do you ask? Easy.. just use the Screen Options menu on the right top of your Dashboard. Every single layout will have some options.

  10. We’ve got shortcuts.

    For all you shortcut lovers out there, WordPress has a bunch of those too. There are shortcuts for WordPress itself, but there are also some additional shortcuts for working in TinyMCE.You can even add your own!

For good measure, my minimal presentation can be found on Slideshare.

Back to you..

Hope you had some fun discoveries reading through this list and feel free to share your own tips in the comment section.

First name
This field is for validation purposes and should be left unchanged.

Automatically sent to your inbox, just like 🪄 

23 responses to “10 Things you did not know about WordPress”

  1. Travis Smith Avatar

    Another good 1 is to revision limit: define( 'WP_POST_REVISIONS' , 3 ); or just turning it off: define( 'WP_POST_REVISIONS ', false );

    1. Remkus Avatar

      Thanks Travis, those are some cool additions!

  2. JUICEDaniel Avatar

    As I already said on twitter: Great post, thanks! I didn’t know about 1,2 and 4 – all very useful. There’s always something new to learn 🙂

    Cheers,
    Daniel

    1. Remkus Avatar

      Indeed. Always room to learn 😉

  3. Luc Avatar

    Damn, I can’t believe I didn’t know oEmbed… I’m going to uninstall some plugins!
    Thanks for the tip!

  4. Dougal Campbell Avatar

    If your server supports SSL, and you’re worried about security:
    define( 'FORCE_SSL_LOGIN', true ); // Use SSL for logins to keep passwords safe
    define( 'FORCE_SSL_ADMIN', true ); // Force *all* wp-admin access to be over SSL

    If you have plugins that make you bump into PHP memory limits:
    define( 'WP_MEMORY_LIMIT', '64M' ); // Or however much you need. Default = 32M, usually

  5. […] sequer conhece, e é precisamente sobre isso que vamos falar neste artigo, que vimos num post do Remkus. Alguns dos códigos são modificações de funcionalidades […]

  6. Paul Avatar

    Did you know you can re-order the images attached to a post by drag-and-drop in the media popup?
    Do you know if the screen options apply to only the logged in user or are they global?

    1. Remkus Avatar

      I did know about the re-ordering of the images, yes. I’m not sure if your second question is a question to me, but if its is: yes, the screen options are a per user settings. Unless you programmatically change that globally.

  7. Daan Kortenbach Avatar

    Skip wp-content when upgrading to a new WordPress version.
    define( 'CORE_UPGRADE_SKIP_NEW_BUNDLED', TRUE );

    (credit: http://wpengineer.com/2301/advent-calendar-only-update-the-core-the-fast-way/)

  8. […] die WordPress-Verbreitung Automattic kauft WP Engine Facebook verklagt WordPress-Theme Entwickler 10 Dinge, die du nicht über WordPress wusstest. WordAds Artikel 1 WordAds Artikel 2 WordPress startet WordAds WPCandy Quarterly – Neues […]

  9. […] sequer conhece, e é precisamente sobre isso que vamos falar neste artigo, que vimos num post do Remkus. Alguns dos códigos são modificações de funcionalidades […]

  10. Dick Hofman Avatar

    “WordPress will allow you to delete it’s Trash can on set intervals. This is extremely handy when you’ve got clients using your site expecting that hitting delete really means delete. All you have to do is add this piece of code to your wp-config.php: define( 'EMPTY_TRASH_DAYS', 1 );

    What line nr?

    1. Remkus Avatar

      Really doesn’t matter, but I’d place it after the database defines 🙂

  11. pct national Avatar

    thanks vry good post.

  12. […] sequer conhece, e é precisamente sobre isso que vamos falar neste artigo, que vimos num post do Remkus. Alguns dos códigos são modificações de funcionalidades […]

  13. […] interessante Tipp dabei war und wünsche noch ein produktives und fleissiges Bloggen. Wer noch weitere Tipps und Tricks und Interessantes rund um WordPress lesen möchte, der sollte mal hier […]

  14. Mary Schneider Avatar

    Thanks for the tips! Your Item #7 has broken link — from my research, I see that it used to redirect to:
    http://my.studiopress.com/docs/child-themes/

    Since the info you have here was interesting and useful, I’m interested in looking at the child-theme information that you had a link to. Unfortunately, that link no longer exists. But I’m nothing, if not persistent…

    In case you are interested, I used the “wayback machine” to research it.

    If you’ve never tried wayback machine (waybackmachine.org=>archive.org), then you may like to play around with it:

    Since the studiopress website had been crawled, I was able to look through the crawls from 2012:
    http://web.archive.org/web/20120901000000*/https://remkusdevries.com/go/studiopress-child-theme-tutorial/

    Selecting the October 12, 2012 crawl to that particular page, I was able to see that it used to have a 302 redirect to to http://my.studiopress.com/docs/child-themes/

    http://web.archive.org/web/20120410031808/http://www.studiopress.com/tutorials/genesis/child-themes

    And here’s some food for thought: Why, oh why would studiopress have chosen to use a 302 redirect, instead of a 301 redirect — waybackmachine.org showed that the page you referenced used to have a 302 redirect (temporary)

    http://www.howto301redirect.com/302-vs-301-redirect/

    Thanks for all of the useful information.

    Mary Schneider

  15. […] die WordPress-Verbreitung Automattic kauft WP Engine Facebook verklagt WordPress-Theme Entwickler 10 Dinge, die du nicht über WordPress wusstest. WordAds Artikel 1 WordAds Artikel 2 WordPress startet WordAds WPCandy Quarterly – Neues […]

  16. Sharon Jackson Avatar

    In regard to limiting revisions, does that code go into config.php? Once installed, will it only limit revisions in the future or will it wipe out earlier revisions as well? I have a customer who revises about 5 million times per post and I am thinking this would be a good solution for him.

    1. Remkus Avatar

      Yes, that goes into wp-config.php. I believe it will only restrict the future number of revisions and you’ll need to use a plugin like Better Delete Revision to get rid of the old ones.

      1. Sharon Jackson Avatar

        Thank you, Remkus, I will share this.

Leave a Reply

Your email address will not be published. Required fields are marked *