The system works…
Sunday, March 19th, 2006Here’s how the site works:
- I make a blog post, and select either “humor” or “ideas” as the post’s category
- The (php) loop that writes each post on the page posts everything in the right column
- A javascript function is called upon each loop iteration, sending the category name
- If the category is labeled “ideas,” the contents of that post is re-directed via [divID].innerHTML to the left column.
- Finally, that post is deleted from the right column
*UPDATE*
- Now that I know a little more about PHP, I just loop through my wordpress database twice, and avoid a whole bunch of problems!