StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 02-12-2009, 03:50 PM
Debra's Avatar
Debra Debra is offline
Community Moderator
 
Join Date: Oct 2009
Location: Ontario, Canada
Posts: 13,365
Default Re: use articleimg in page

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'); ?> &middot; <?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(', ') ?> &middot; 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(); ?>
the add postimage to your stylesheet/ adjust to suit your needs

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -5. The time now is 03:30 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.