Help with wordpress gallery

I am having an issue with a gallery I am building. It’s a Wordpress website, and the gallery has an image for each item and when clicking on the image it links to the posts taxonomy. I can get either the images to display correctly or the links to work, but I can’t get both to work together (I think it’s the start and end I am screwing up). Here’s the code:

[php]

    <?php foreach($latest_projects as $post) : setup_postdata($post); $recent_project_thumb = wp_get_attachment_image_src(get_post_thumbnail_id(), 'recent-work'); ?> <?php $categories = get_terms('gallery_cats'); foreach ($categories as $cat ) : ?>
  • <?php the_title(); ?>
  • <?php endforeach; ?> <?php endforeach; ?>
[/php]

Thank you for your assistance I really appreciate it!

Sponsor our Newsletter | Privacy Policy | Terms of Service