![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#4
|
||||
|
||||
|
If you use the DCG available here
http://wordpress.org/extend/plugins/dyn ... ry-plugin/ with this code it will do what you want Code:
<?php get_header(); ?>
<div id="content">
<div id="contentwide">
<div class="postarea">
<?php
/* Code by Studiograsshopper
http://www.studiograsshopper.ch/
Load options */
$dfcg_options = get_option('dfcg_plugin_settings');
$dfcg_imghome = $dfcg_options['homeurl'];
$dfcg_imgpath = $dfcg_options['imagepath'];
$dfcg_imgdefpath = $dfcg_options['defimagepath'];
?>
<?php
if (have_posts()) : while (have_posts()) : the_post();
// Now find the cat ID//
foreach((get_the_category()) as $dfcg_category);
?>
<h1><?php the_title(); ?></h1>
<div class="postdate">
Posted by <?php the_author_posts_link(); ?> on <?php the_time('F j, Y'); ?> · <?php comments_number('Leave a Comment', '1 Comment', '% Comments'); ?><?php edit_post_link('(Edit)', '', ''); ?></p>
</div>
<div id="postimage">
<?php
if (get_post_meta($post->ID, "dfcg-image", true) ): $dfcg_imgname = get_post_meta($post->ID, "dfcg-image", true); ?> [img]<?php echo $dfcg_imghome . $dfcg_imgpath . $dfcg_imgname; ?>[/img]" /><?php endif; ?></div>
<?php the_content(__('Read more'));?><div style="clear:both;"></div>
<!--
<?php trackback_rdf(); ?>
-->
<div class="postmeta">
Filed under <?php the_category(', ') ?> · Tagged with <?php the_tags('') ?></p>
</div>
<?php endwhile; else: ?>
<?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
</div>
<?php comments_template('',true); ?>
</div>
<?php include(TEMPLATEPATH."/sidebar_right.php");?>
</div>
<?php get_footer(); ?>
Code:
#postimage {
float: left;
width: 500px;
padding: 4px;
margin: 0 auto 15px;
text-align: center;
overflow: hidden;
}
#postimage img {
width: 500px;
height: 200px;
}
__________________
Fat Cat Designs | "Creativity takes courage." Henri Matisse Make life easier use FireFox and these Customizing tools: Firebug - Web Developer New to Genesis? See our Guide for Beginners! Recommended StudioPress Designer StudioPress on Facebook |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Articleimg issues | eddieperea | General Discussion | 1 | 03-30-2010 08:52 PM |
| articleimg wont show on home page, here is source code | jvilla | General Discussion | 2 | 07-03-2009 09:41 AM |
| FCG articleimg | cogentconcepts | General Discussion | 16 | 06-08-2009 04:03 PM |
| articleimg size? | tmiller18 | General Discussion | 1 | 01-27-2009 05:33 PM |
| 4 tumb windows on main page and "articleimg" doesnt take the | hedone.hawker | General Discussion | 16 | 01-08-2009 11:05 AM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us