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!
Tags: syntax, WordPress
Posted in Blog | No Comments »
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.
Tags: nextgen, WordPress
Posted in WordPress | 2 Comments »
September 16th, 2009
Trying to login to your WordPress blog and after submit you get a blank login page? Also trying to access the wp-admin area with a blank screen and no errors?
This problem has happened to me many times with my personal site as well as client sites. After trying different things and looking at other articles what worked for me was to:
- First log out using this url: http://www.yourdomain.com/wp-login.php?loggedout=true
- Rename your plugins folder to “_plugins” to back them up and create a new folder called “plugins” – this insures that there is on conflict with any plugins that are being run
- Replace your current wp-login.php file with a new one
- NOTE: You might get a header php error, and if you do follow this article posted at WordPress
Hopefully those steps can fix this problem for you. If something else works for you, feel free to post the results.
Tags: admin, blank, login, WordPress
Posted in WordPress | 1 Comment »
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.
Tags: page, posts, template, WordPress
Posted in Blog | No Comments »