A tabular category template layout?
-
I am hoping to get help with a template I’m trying to create. Essentially I want to create a layout like this for my posts:
http://i882.photobucket.com/albums/ac28/redjak/Wordpress%20Support/post-table.jpgDiv 1 would be the post thumbnail
Div 2 The postitle and permalink
Div 3 The excerpt
Div 4 & 5 are custom fields
Div 6 is a map thumbnail. Though I haven’t decided which mapping plugin to use.I’m told it’s possible but I have no clue how to write the code up. This is all I’ve gotten so far:
<?php /* Template Name: Properties Test */ <?php get_header(); ?> <div align="left" class="property" id="thumb"> <a href="<?php the_permalink() ?>"> <?php echo get_the_post_thumbnail($page->ID, 'thumbnail'); ?> </a> </div> <div class="property" id="title"> <a href="<?php the_permalink() ?>"> <h3><?php the_title(); ?></h3> </a> </div> <div class="property" id="address"> <?php the_excerpt(); ?> </div> <div class="property" id="program"> <?php $key="program"; echo get_post_meta($post->ID, $key, true); ?> </div> <div class="property" id="project"> <?php $key="project"; echo get_post_meta($post->ID, $key, true); ?> </div> <div class="property" id="map">map code </div> require_once(PARENT_DIR. '/index.php'); <?php get_footer(); ?> ?>
Can anyone help me?
- The topic ‘A tabular category template layout?’ is closed to new replies.