my name is ryan coughlin

some people teach, others cook, I create a web presence with a lasting impression.

Minor changes – Syntax Plugin

October 7th, 2009

I am switching my syntax highlighting from WP-Syntax to Google Syntax Highlighter. It is installed and working, but for some reason it is parsing my PHP, which is not allowing me to post the code for readers can try out the articles.

I have been doing some searching on Google with little results, but hopefully something will come up.

I recently started working at Commerce Generation in Burlington, VT so pardon for the delay in articles. I have several quick posts with some tips to publish in the next couple of days.

In the mean time sorry for the error in the syntax highlighting.

If you’re in the Northeast, try to stay dry!

NextGEN Gallery not loading CSS/Javascript

October 1st, 2009

Is your NextGEN Gallery showing images? But not loading the CSS and Javascript? Find the solution below.

I have been working on this project where the client wanted to be able to upload and install image galleries, so I have worked with this one and I love it: mhttp://alexrabe.de/wordpress-plugins/nextgen-gallery/

All was smooth and working until, I removed this one line of code from my header.php in my WordPress theme directory.

<?php wp_head() ?>

Without this function in your header.php the gallery does not know where to insert the CSS/JavaScript files to create a fully functioned gallery. Be sure that it is placed before your closing tag.

To find out more information on the function check out this

All in all, be sure if you are running any type of plugin where they need to insert code upon plugin creation that you have that line within your head element of the page.

Display wordpress posts on a page

September 14th, 2009

I have been searching for various articles and help to use WordPress to display a page full of your blog posts. I finally found out a source and it is going to be creating a custom page template in WordPress. If you want to read more on creating custom page templates, be sure to check it out.

The basic concept, will go as follows:

  • Create a new file and give it a name such as “allposts.php”
  • Paste the code below in the “allposts.php”
  • Upload the file to your theme directory
  • Create a new page in WordPress
  • To the right where you see Page Template, select the one you just created
  • Save and view the page. You should now be viewing your posts

Code that goes in to the “allposts.php” is below, this is an example from my site. The XHTML can be customized to the theme of your website.
The top section of code is where the name of the page template is defined. This will display on the page editor under the Page Template drop down.



Post by: on with comment(s). located in .

This is a standard way to display your WordPress blog posts on a page using custom page templates, you can alter your query by editing this line:


To read more on the WordPress query_posts(), check out the reading.