All Posts Tagged: ‘Wordpress’

WordPress 2.9 – An Amazing Update

I have been working with WordPress 2.9 now for a few weeks and I cannot remember the last time I was so excited with the new features of WordPress. There are countless little improvements most users would not notice, but there are some killer new features that should not be overlooked.

  • First and foremost – working with images just got a lot cooler!
    • Thumbnails Finally after creating several custom plugins for this – there is now a simple way to select and then use a thumbnail for each post. Simply add a few lines of code into your theme’s functions.php file and you are ready to go.
      [php]
      add_theme_support( ‘post-thumbnails’ );
      set_post_thumbnail_size( 150, 150, true ); // Normal post thumbnails[/php]
      (more details)
    • Cropping Ever need to crop a photo for your post or page? You can now upload any image, use built in crop functions to select the part of the image you want, save the cropped photo, and then use it – all within WordPress. Say goodbye to opening up Photoshop, cropping, saving, uploading, etc. Say hello to an easy to use streamlined process.
  • We’ve got trash! No more “crap I just deleted that post”. Now you have the option to Edit, View, or Trash a post or several posts. Once the items are in the trash you can easily recover them or permanently delete them.
  • Repair those tables please.Now you can automatically optimization your database by adding this line to your wp-config.php file: define(‘WP_ALLOW_REPAIR’, true);

Some screenshots of interest

Use As Thumbnail

Crop, Scale, etc

If you have not updated to this version – please take some time and take a look. The cropping alone will save hours of time if you ever needed to manipulate your images! Overall, this update took things one step further to making a solid, feature rich content management system and I am excited to use some of these new features with each new site I create!

WordPress 2.9 RC 1

Well – it is that time again – another new version of WordPress is coming out in the next few days (WordPress 2.9). I am running WordPress 2.9 RC 1 here on jappler.com and only one issue so far. If you have not read anything about the newest version soon to be available and you use WordPress, check out: WordPress 2.9 New Features/Changes.

WordPress Wednesdays: Little WordPress Gems

Every once and awhile while looking through the WordPress documentation, I find little gems. Here are a few that I found particularly interesting:

  • wp_page_menu Easily create a menu with the home page appended onto the menu with a lot of parameters. Similar to the standard wp_list_pages, but with some different possibilities
  • the_search_query I have seen several ways to get this, but this is by far the easiest, quickest, and most secure.
  • wp_reset_query If you use conditional tags, you will end up going crazy at some point and then will realize this is needed. Note to self everyone.

WordPress Wednesdays: Custom Taxonomies

I recently worked on a project where we needed something sort of like tagging, and sort of like categorizing – but neither really worked as there would be way too many exclude this and only show that stuff involved. I needed a way to classify certain content, have easy access to it, and display it in a manner that be effective and quick.

After exhausting all ideas – someone pointed me towards using “Custom Taxonomies” and it was a perfect fit.

What is a taxonomy? Simple – a way to group things. Why not use categories and or tags?

An example to better your understanding:
Right now – on this blog I use tags for my post themes (WordPress Wednesdays, etc). This is not ideal, because I am trying to group together posts by a particular theme, not necessarily by tags. Even though WordPress Wednesday could be seen as a key word – it is more a description or a classification of the post. What I plan to do in the next few days is to go back, create custom taxonomies for all my post themes and then use that for classification of posts instead of using tags. With this, I can then query them using query_posts or even make a tag cloud.

[php]
‘wordpress-wednesdays’, ’showposts’ => 10 ) ); ?>
‘post_theme’, ‘number’ => 15 ) ); ?>
[/php]

Still confused? Check out the links below. Once you start thinking about organizing information, I think it will make sense.

References:

WordPress Wednesdays: Get the Current Page

I was writing some functions that are used in the admin for my commercial WordPress theme: Lucidity and stumbled upon a great variable in WordPress: $pagenow. This variable will return the current page you are on and is great form admin functions – especially those that you want to only make available on certain pages.

To use this – just add it to your functions as a global variable, then you can use it to load in specific js/functions:
[php]
global $pagenow;
if (($pagenow == ‘admin.php’) && ($_GET['page'] == ’sdac_appearance’)) {}
[/php]

This proved to be very helpful when dealing with some finicky JS.

WordPress Wednesdays: Jappler Category/Tag Feeds

Perhaps you come to this site because you personally know me or like some of the WordPress hints I like, or like my CSS posts, or just like my personal rants (which seem to happen less…hmm I need to get on that!).

If you are only interested in some of my posts but not others, you can easily subscribe to just certain “subjects” very easily.

For example, lately I have been posting on a certain subject each day. (WordPress Wednesdays, etc). If you are only interested in reading those posts, subscribe to this RSS feed: http://www.jappler.com/blog/archive/tag/wordpress-wednesdays/feed. Perhaps you only want to read about things I post in the “Serenity Now” category. You can subscribe to http://www.jappler.com/blog/archive/category/this-and-that/serenity-now/feed. Do you see what I am doing? This logic will work on any tag or category. Find the tag URL (click on a tag) or find the category URL (click on a category in the sidebar) and then add “/feed” to the end of the URL – and there you go. A custom filtered Jappler.com feed.

Just another way WordPress makes it easy to interact with content!

Linkfest Thursday: July 9, 2009

Here are some links that I have found interesting over the last week or two – and hopefully you will as well.

WordPress Wednesdays: Setting up Default Settings for FTP in WordPress

Now that you are using WordPress 2.7 or WordPress 2.8 and are updating your plugins when new updates are available using the WordPress admin – you might be tired of entering the same information over and over (FTP host, FTP user, and FTP password). If you want to just have the WordPress admin automatically connect and not prompt you for these items – you can enter the following in your wp-config.php file and you will set from then on to update plugins without having to remember all the info.

define(“FTP_HOST”, “jappler.com”);
define(“FTP_USER”, “user”);
define(“FTP_PASS”, “password”);

* Please note that this is not personally recommended that you have your FTP credentials in any script for security reasons – but this is something you can at your own risk and something that does save some hassle (but can come with a price).

WordPress Wednesdays: Where to Begin

A lot of people want a web site or a blog but do not know where to start or what all WordPress has to offer. If you are looking for a great, easy to use system to publish content on the web – I would start here:

  1. Start Free. If you want to simply check out WordPress and see what is made of – sign up for a free account at wordpress.com You can choose from several free themes (look and feel) and have no worries about backup, hosting, etc. This will allow you to focus on the content and not get frustrated with installation/set up and hosting.
  2. Read. Take 10 minutes and read through some of the documentation.
  3. Play Around. Familiarize yourself with WordPress widgets (sidebar) and start taking control of your content.
  4. Customize. Once you are ready to move your site to a host so you can customize your theme, your plugins, etc – start looking at some free plugins before doing any custom development. It is most likely you will be able to find something free that fits your needs.
  5. Add. Check out the themes and plugin listings on wordpres.org (Extend).
  6. Learn More. If you get to a point where you have a site up, you have content, and you want to find out more about what all WordPress can offer – I would suggest either buying a WordPress book or pay for an hour of consultation with a company that specializes in blog consultation (like my company) so you can really maximize your web site presence and efficiency.
  7. Small Steps. Most importantly – start small and build on it. Blogging and maintaining a web site is not always fun or easy – but taking small steps (one new plugin at a time, or a slight change in a template) will ensure your web site will continually develop into something great!

Just remember – you do not have to be a graphic designer or a programmer to have a great web site – you just need patience and a willingness to learn!

WordPress Wednesdays: It is All About the Query

My last ten or so projects I have been working on all have a common theme: maximize WordPress’s ability to be a powerful CMS. Clients more and more are coming to me with the need to create a custom fields which they can store/query data throughout their site.

WordPress is completely customizable and because of this – it is easy to add custom fields to any post or page and then use the data put in them throughout the page.

Example: You have all your clients listed on your web site – and have created profile pages for them. Not only do you want to show their profile – you would really like to have a page template that shows all your client logos – and does so dynamically so that anytime you add a new client – their logo gets added to the mix automatically. The examples are endless and the solution is easy.

Step 1: Create a custom fields plugin (or use the generic custom fields) – personally I like to create a plugin so that I can completely customize and make adding content as easy as possible. If there is interest – I can cover how to create a plugin.

Step 2: Now that your data is stored – you can use it anywhere you want (in the loop, outside the loop). You can use something like:
[php]ID, $key, true);?>[/php] to display the data. (see Using Custom Fields for more information).

Step 3: Again – now that the data is stored – you can also query it so if you wanted to show all logos (as mentioned above) – you can do so by using WordPress’ query_posts to query and then display the data. (see Query Posts for more information).

Stuck? Interested? Let me know.