haha i think this is more of a document of my process, I refuse to give up. so hopefully this will someday help someone looking for the same thing. So I managed to style more of the code to get closer to what I want.
I manged to...
- place the rules in the correct places
- tweakthe code michael gave me to display: category title and description
- add div to the category name an description to style only that
- position the category info in the correct spot
- I even managed to have it stylize with my original thumbnail posts with title and author showing. and still be organized according to michael's code
- However it does not want to stay insync with the position of the category and the rules....
My code: (so far)
<?php
//for each category, show posts
$cat_args=array(
'orderby' => 'ID',
'order' => 'DESC'
);
$categories=get_categories($cat_args);
foreach($categories as $category) {
$args=array(
'orderby' => 'title',
'order' => 'ASC',
'showposts' => -1,
'category__in' => array($category->term_id),
'caller_get_posts'=>1
);
$posts=get_posts($args);
if ($posts) {
echo '
<div style="position:absolute;margin-bottom:20px;margin-top:-24px; margin-left:-10px;">
<hr color="#000000" size="0.5px" style="height:0.5px;width:659px;">
</div>
<div style="position:inherit; margin-left:680px; margin-top:-25px; width:200px">
<hr color="#000000" size="0.5px" style="height:0.5px;margin-bottom:20px;"/>
<div style="font-family:Courier New; font-size:16px; padding-left:10px; padding-right:10px;">
<a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "" )) . '" ' . '>' . $category->name. ' '.$category->description.'</a>
</div></div><BR />';
foreach($posts as $post) {
setup_postdata($post); ?>
<div id="post-<?php the_ID() ?>" style="width:670px;">
<div class="entry-content">
<?php childtheme_post_header() ?>
<a href="<?php echo the_permalink() ?>" rel="bookmark">
<span class="slide-title"><?php echo get_post_meta($post->ID, 'designed-by', $single = true); ?>
<div style="width:145px; position:inherit; top:0px;" align="right"><?php echo the_title(); ?></div></span>
<img class="full-image" src="
<?php if(get_post_meta($post->ID, 'full-image', $single = true))
{echo get_post_meta($post->ID, 'full-image', $single = true);} else{bloginfo('url');
echo "/wp-content/themes/gallery/images/thumbnail-default.jpg";} ?>" width="150" height="113" alt="<?php echo the_title() ?>" />
</a>
</div>
</div><!-- .post -->
<?php
} // foreach($posts
} // if ($posts
} // foreach($categories
?>
screenshot of my site in case you read this and it has changed: click here
if you can help , please do so! thank you =) and happy halloween