Tutorials Category

How to Clear Your Old Database Tables

10th of February, 2010 in the year of our Lord

Oh noz!

To someone who hasn’t dealt with this problem before, this issue probably seems pretty intimidating (at least I think it did to me when I first got it). However, this is most likely a simple fix.

Read the rest of How to Clear Your Old Database Tables…

Finding the Page ID Numbers in WordPress

19th of July, 2009 in the year of our Lord

When developing a WordPress theme, it’s helpful to know a specific page’s ID number at times.

For instance, I’m working on a site now where I want to display some pages in the sidebar, but not all, so I use the template tag “wp list pages” and the parameter “exclude.”

Here’s how the code looks:
<?php wp_list_pages(‘title_li=&exclude=PAGE_ID’); ?>

Problem is, I don’t know the page IDs and it’s not listed anywhere in Pages > Edit. However if you choose a specific page to edit, the URL in the navigation bar will end in “post=PAGE_ID”.

If you need multiple page IDs, go to Pages > Edit. The URL that titles point to ends in the page ID. In Firefox you can just hover over the link and look in the status bar at the bottom of the screen.

My code ended up looking like this:
<?php wp_list_pages(‘title_li=&exclude=2, 308, 310, 312’); ?>

Creating a Local Copy of Your WordPress Site Using MAMP

20th of May, 2009 in the year of our Lord

I presented my portfolio on May 11th using a local copy in case there were any problems connecting to the internet and because our campus network is slooooooooow.

I found a few tutorials on how to create a local copy of an existing WordPress installation, but they were all very slightly off for someone using MAMP. I first got MAMP when I was learning how to install WordPress locally and since it works great, I didn’t want to install another local server environment.

Read the rest of Creating a Local Copy of Your WordPress Site Using MAMP…

Properly Using Multiple jQuery Functions

18th of April, 2009 in the year of our Lord

Each time I design/develop a new website, I try to learn at least one new thing.

I’m using LightWindow to display some of my work in my portfolio. LightWindow uses JavaScript, as does the method I used to display my latest tweet. I don’t really understand why, but whichever of the .js files was linked to last was the only one that would work. Speaking with my friend Joel led me to the solution.

I had to run the function jQuery.noConflict() and replace each $ with jQuery. It’s explained in more detail on the jQuery site, so if you’re still having trouble, I suggest looking there.

Read the rest of Properly Using Multiple jQuery Functions…

RSS

Subscribe

Separator