About The Doctor

  • Website: http://wpfirstaid.com or email
  • Biography: My name is Edward Caissie. I am a WordPress enthusiast; theme designer; plugin developer; and blogger ... not necessarily in that order. I founded WP First Aid as a place to help others with WordPress related items and issues.

Posts by The Doctor:

Add the_shortlink()

on Jul 22, 2010 with No Comments | Short Link
in Functions
as ,

I believe there are many reasons for themes to use this function or add it to your WordPress web site. I will briefly discuss a couple of the ones that come to mind. Note, if you are using the default permalink structure this may not be for you as the_shortlink() creates a URL that looks just like it.

If you are new to WordPress and are still experimenting with the permalink structure to best fit your needs, you might consider using this function to create internal links for your site. Using the URL generated by the_shortlink() will always resolve correctly, using the verbose URL of the permalink structure may cause issues if you change the structure and do not manually edit all the internal links you have previously posted.

Please note, by “internal links” I am refering to the links used within the content of a post or page on your site pointing to another post or page on your site. A WordPress installation has the “smarts” to correctly resolve the links it generates if you change the permalink structure but it will not go back and “fix” anything you manually typed yourself as part of your page or post entry.

There is great potential for the user, the designer, and the developer using this function. I recommend adding it to all themes. Here is the most basic default usage of the_shortlink():

<?php the_shortlink(); ?>

This is the code I have decided to use on this site:

<?php the_shortlink( __('Short Link'), '', ' &#124; ', '' ); ?>

… which you can see just after the comments or subscribe link in the post meta details.

Of course you can always use the ‘Get Shortlink’ button found on the page and post administration panels to get your shortlink, but making use of this single line of code allows your readers to gain that same benefit, too.

NB: If you have the WordPress.com Stats plugin installed and activated, the_shortlink() function will use the wp.me link shortening service; and, it will retain all of the usefulness I noted above.

Upgrade wp_list_categories() to wp_nav_menu()

on Jul 20, 2010 with 2 Comments | Short Link
in Functions
as , , ,

In this third installment in the upgrade to wp_nav_menu() series of posts, I will be dealing with moving from wp_list_categories() to wp_nav_menu(). Let’s start with the same basic outline and list the default options for each function. We will start with wp_nav_menu() 1 first: wp_nav_menu( array( ‘menu’ => ”, ‘container’ => ‘div’, ‘container_class’ => ”, [...]

Upgrade wp_list_pages() to wp_nav_menu()

on Jul 16, 2010 with 1 Comment | Short Link
in Functions
as , , ,

A few options to address and with possibly a minor edit to the theme, you can upgrade wp_list_pages() easily to wp_nav_menu() in your theme.

Upgrade wp_page_menu() to wp_nav_menu()

on Jul 12, 2010 with No Comments | Short Link
Last modified by The Doctor on July 25, 2010
in Functions
as , , ,

Upgrading from wp_page_menu() to wp_nav_menu() may be as easy as a simple find and replace operation.

Strike Through Text

on Apr 15, 2010 with No Comments | Short Link
in Tips
as , , , ,

How to create a strike-through text effect with an HTML tag or CSS.

Modified Post Function

on Mar 18, 2010 with 1 Comment | Short Link
in Functions
as , , ,

A simple function to show who modified a post last and when in WordPress versions 3.0 and greater.

WordPress 3.0 Navigation Menu Styles

on Mar 17, 2010 with No Comments | Short Link
Last modified by The Doctor on April 15, 2010
in Functions, Tips
as , , , , ,

A list of WordPress version 3.0 Navigation Menu default widget, and wp_nav_menu() function, generated CSS style elements.

Dynamic Copyright

on Feb 16, 2010 with 6 Comments | Short Link
Last modified by The Doctor on June 20, 2010
in Functions, Tips
as , , ,

Add a dynamic copyright function to your WordPress theme. Just use the sample code and instructions in this post.

Calendar Default Widget Broken

on Jan 22, 2010 with No Comments | Short Link
Last modified by The Doctor on March 17, 2010
in News
as , , ,

WordPress’ calendar default widget having issues displaying months correctly. See this ticket at trac: #11414