Tutorials Page 133

  • By
    Prevent Posts in a Category From Displaying in WordPress’ RSS Feed

    I recently posted a snippet which prevented posts in a given category from displaying in WordPress' main loop.  I even went on to create my first WordPress plugin to accomplish the task via the WordPress control panel.  The one task those snippets doesn't complete...

  • By
    Create a “Recent Posts” Module Outside of WordPress

    I've never created a complete client website using WordPress, but many of those websites do have a WordPress blog to compliment the website. Oftentimes the client will want to list recent blog posts within the website, not within the WordPress shell. No problem --...

  • By
    HTML5 hidden Attribute

    HTML5 has given us some simple but incredibly useful HTML attributes:  placeholder, download, and autofocus to name few.  Another new attribute is the hidden attribute.  When applied to an element, the hidden attribute acts very much like CSS' display: none;  the element disappears...

  • By
    WordPress Plugin:  Remove Posts in Category From Homepage

    Being a WordPress user for some time, I've always wanted to create a WordPress plugin but I've hesitated.  I've not run into an issue that I couldn't find an existing plugin for, and the thought of maintenance on a WordPress plugin seemed daunting because...

  • By
    Prevent Posts in a Category From Displaying in WordPress’ Loop

    This code snippet has become a WordPress plugin! Categories are obviously a major "classification" utility for websites and blogs that use WordPress.  Sometimes you want a category to represent more than just a basic post subject classification -- you may want a category of your blog...

  • By
    Python Decorator for Preventing Robot Indexing

    Much of my time at Mozilla has been spent catching up to the rest of the MDN team with respect to python.  The new MDN backend, codenamed Kuma, is entirely Django-based and has been a joy to learn.  My latest python adventures have been focused on...

  • By
    Disable WordPress autop

    Back when I first started this blog, and in turn using WordPress, the most annoying part of blogging was WordPress' auto-formatting.  WordPress would strip out custom attributes, mess with my DIV and paragraph structure, and just generally raise havoc.  It bugged me so much that since...

  • By
    Full Width Textareas

    Working with textarea widths can be painful if you want the textarea to span 100% width.  Why painful?  Because if the textarea's containing element has padding, your "width:100%" textarea will likely stretch outside of the parent container -- a frustrating prospect to say the least.  Luckily...

  • Media Temple Hosting
  • By
    Mighty Deals:  Win an iPhone 5!

    Mighty Deals has been putting together some great deals lately but this is the best one yet!  Mighty Deals is simply giving away an iPhone 5 to one lucky person, anywhere in the world!  All you have to do is click the button below! Not like I...

  • By
    Retrieve Headers with cURL

    We all know the cURL is incredibly useful.  We can retrieve remote content with curl, post to a remote URL, and perform hundreds of other tasks.  One simple task that can be completed is simply retrieving basic response headers.  To test the robot...