Pay money and get answers for your WordPress questions (more info)

Show specific post content on main page - excerpt or what?

Hello,
I have a video site in which the main page has a list of images (featured image) and titles that link to the posts. A single image and text to the corresponding post.

In the post is the video embed (top) and just underneath is a table with 3 caption pic of the video.
<div align="center"><table width="784" cellspacing="8" bgcolor="#5E005E"><tr>
<td><img style="border:1px solid black;" src="/wp-content/uploads/01.jpg" height="150" width="250"></td>
<td><img style="border:1px solid black;" src="/wp-content/uploads/02.jpg" height="150" width="250"></td>
<td><img style="border:1px solid black;" src="/wp-content/uploads/03.jpg" height="150" width="250"></td>
</tr></table></div>


I've decided I would like use the above table for the 'feature' on the main page instead of the single image.
such as:
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<div class="posttitle"><a href="<?php the_permalink() ?>" target="_blank"><?php the_title(); ?></a></div>
<div class="entry">
<?php the_excerpt(); ?>
</div>
<div class="postmetadata">
<div id="category"><?php the_category(' ') ?></div>
<div id="datemeta"><?php the_time('jS F, Y') ?></div>
<div id="readmore"><a href="<?php the_permalink() ?>" target="_blank">see more</a></div><div class="clear"></div>
</div>
</div>


Tried <!--more--> for excerpt but I would have to put the table at the top and not underneath the video embed as I want it.
Tried placing the table in the excerpt function but its 'disjointed' from the rest of the post body and content.

How do I get it in there without altering the post design?

Thanks

Answers (3)

2013-02-04

Trevor Green answers:

Not entirely clear without a link to the site. You are putting code up here? Are you comfortable editing templates as a solution?


ajay300 comments:

"Are you comfortable editing templates as a solution?"
yes
The second code which is placed in the main index and category pages works good. I've placed the table within the excerpt function (edit post)and it was correctly showing(main page).
I just cant get it to work without altering the post its self which I dont want to do.


Trevor Green comments:

Well the table doesn't look like a dynamic piece and it sounds like that is what you want to move.

Did you consider using a function and/or short code stuck in your functions.php in your theme to output that table where you want it?

Or widgetizing the area in your theme where you want it and just add the table to a html widget.

So there is 3 options to make it a modular piece that you can deploy wherever you like.


Trevor Green comments:

Well the table doesn't look like a dynamic piece and it sounds like that is what you want to move.

Did you consider using a function and/or short code stuck in your functions.php in your theme to output that table where you want it?

Or widgetizing the area in your theme where you want it and just add the table to a html widget.

So there is 3 options to make it a modular piece that you can deploy wherever you like.


ajay300 comments:

post with the 3 pic purple border table.
(not placed in excerpt function)