Gallery Update; Revamping Portfolio
Gallery updates: Maid Cafe, Holiday Hippo, Serenity, and as of today, Crouching Tiger.
I’m in the middle of revamping Signed by V. The renovation includes a new layout, new content and using WordPress+YAPB (the same plugin that’s powering the galleries) as the new backend because I can’t be bothered to write my own CMS.
Even though I already have the gallery plugin functioning on this website, I spent most of the day writing templates and scripts to make it serve the portfolio. I spent a good two hours trying to figure out why query_posts() was fetching my posts twice. When I couldn’t figure it out, I ditched the script and wrote another one using get_posts(). Of course, it didn’t work because I needed the Loop conditions in order to use the built-in YAPB functions to grab the portfolio thumbnails. I could’ve hacked it and make it generate new thumbnails every time if it wasn’t so… stupid. So I went back to the initial approach.
The problem wasn’t in my script. While I was querying my posts in one location, the same set of posts was being generated by the page template my script was on. *head desk* Now I know where the problem is except I still don’t have a solution. The Loop is inherit in Wordpress page templates… but it’s grabbing both the page content as well as posts that it shouldn’t be concerned with. Why?
Leave a Comment
December 27th, 2008
12:45 am
Filed under 'Art, Design, Development, Signed by V'