This seems like it should be a simple thing, but I’m having the hardest time figuring it out. What I’m trying to do is convert an existing web site into a WordPress as a CMS site, to allow the site owner to make updates to the content of his pages, as well as add portfolio pages. There are currently around 20 portfolio pages that I’ve created a template for (utilizing the NextGEN gallery plugin). I would like to find a way for the site owner to be able to modify the text of his 5 “main” content pages, and while editing those pages, be able to pick 3 images from any of his galleries to appear on those pages. The problem is my main page templates have those images sitting outside of the “main” content area.
<?php /* Template Name: KL Front Page */ ?> <?php get_header(); ?> <div id="Logo"><a href="http://www.site.com"><img src="<?php bloginfo('template_directory'); ?>/images/KLlogo.jpg" width="300" height="255" alt="Images, Inc." border="none"></a></div> <div id="Description"></div> </div> <div id="Title"></div> <div id="Content"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <article class="post" id="post-<?php the_ID(); ?>"> <div class="entry"> <?php the_content(); ?> </div> <?php endwhile; endif; ?> </div> </div> <div class="Row"> <div class="FrontPF"><a href="pf/portfolio3-1.html"><img src="<?php bloginfo('template_directory'); ?>/images/KLIndexImage1.jpg" /></a></div> <div class="FrontPF"><a href="pf/portfolio1-1.html"><img src="<?php bloginfo('template_directory'); ?>/images/KLIndexImage2.jpg" /></a></div> <div class="FrontPF"><a href="pf/portfolio2-5.html"><img src="<?php bloginfo('template_directory'); ?>/images/KLIndexImage3.jpg" /></a></div> </div> </div> <?php get_footer(); ?>
For layout purposes, the “loop” exists in the main content area, but the images will appear in a separate layer below the main content area.
Any help would be appreciated.
- The topic ‘Add images outside of main content area in template…’ is closed to new replies.