I know there are ways to integrate Zenphoto with Wordpress but are there ways to do the opposite? I'm looking for a way to show the first ten albums in the sidebar of my blog, either with a plug or coding that the loads the database and displays the albums with php shortcodes.
Thanks,
Greg
This is pretty much basic programming, not even basic PHP. If you do not know at least this much, then you really need to do some learning.
Besides, since you did not show the solution you found there is no way anyone here can provide you with an answer. These things really depend on what has gone on before.
OK, I'll try again. I'm trying to make a page outside of Zenphoto that shows the last ten albums and then use php include to add that page to my WordPress sidebar.
I've tried using plugins and many didn't work.
Here's what I have so far: http://gregschultz.net/gallery.php
With this code:
'
" title="View album: ">
" title="View album: ">
'
It displays all of my albums.
With this code:
'
" title="View album: ">
'
It displays the first album only.
I'm not familiar with PHP programming so this is why I'm asking for help.
Thanks,
Greg
First, for this forum, it is best to use the code deliminating "peck marks" or "back tick" (on the US PC keyboard it is the left most key on the numberic row.)
This takes care of insuring that your HTML markup in the code shows up.
Unless some of your code has been swallowed because of the HTML interpretation, the two loops you show would process exactly the same number of albums. The only significant difference between the two is the HTML brackets in the first loop. This would lead one to beleive there might be a mis-balanced set of tags.