Content load on image click
Ok. So, I have a “works” page that basically shows a galley of paintings. The gallery is located in a seperate post that is posted onto the “works” page using:
<?php query_posts( 'p=32' ); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php the_content('Read More »'); ?>
Simple enough. Now what I want to do is be able to post another post’s (let’s say post 50’s) content as well.
What I have is a page with two divs, one side “left” and the other side “right”.
On the right side I have two thumbnails (let’s say a circle and a square). When I click on the circle, I want the content from post 50 to load, and when I want the other, the content from post 32… all in the “left” div.
Hopefully that makes sense. It seems do-able to me, but I unfortunately don’t have too much experience in how to do this. I’d appreciate any help. :]
EDIT: Oh yes, I should probably add that the images are not from attatchments. The posts only contain text that calls the plugins that display the galleries. :]
- The topic ‘Content load on image click’ is closed to new replies.