Hello. Can somebody help me with formatting my posts? On my homepage, here, they are formatted the way I want. However, on my category pages, like this one, the posts aren't formatted the same. I am using the following code I found online:
function custom_cat_page() {
global $post;
$temp_query = $post;
$postID = $post->ID;
$custom_cat = get_post_meta($postID, 'custom_cat_page',$single=true);
if($custom_cat){
?>
<?php
$posts = new WP_Query('cat='.$custom_cat.'&showposts=10');
while ($posts->have_posts()) : $posts->the_post();
?>
<h3><a href="<?php the_permalink() ?>"><?php echo $post->post_title ?></a></h3>
<?php the_content();
endwhile;
?>
<?php
$post = $temp_query; }
?>
<?php }
add_action('thesis_hook_after_post','custom_cat_page');
I know there is something I have to add in here, but I've searched and can't find it. Please help! Thank you in advance.