WordPress.org

Support

Support » Themes and Templates » need help to make post's like this blog

need help to make post's like this blog

Viewing 15 replies - 1 through 15 (of 17 total)
  • The Source Code Of Index

    <?php get_header(); ?>
    
    <?php global $options; foreach ($options as $value) { if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } } ?>
    
            <div id="contentleft">
    
    <?php if ( is_home() && $paged < 2 && $wp_clear_features_on == 'yes') { ?>
    <?php include (TEMPLATEPATH . '/features.php'); ?>
    <?php } ?>
    
                <div id="content" class="clearfix">
    
                    <?php if ( $wp_clear_home_posts_by_cat == yes ) { ?>
    <div class="maincontent">
    <?php include (TEMPLATEPATH . '/index2.php'); ?>
    </div>
    <?php } else { ?>
    
                <?php if ( $wp_clear_home_layout == '3-column' && $wp_clear_home_posts_by_cat == no ) { ?>
                <div class="col-3">
                <?php } ?>
    
                    <?php include (TEMPLATEPATH . '/banner468.php'); ?>
    
                    <div class="maincontent">
    
    <?php
    $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts("paged=$page");
    if (have_posts()) : while (have_posts()) : the_post();
    if ( $post->ID == $do_not_duplicate[$post->ID] ) continue; update_post_caches($posts); ?>
    
                        <div class="post clearfix" id="post-main-<?php the_ID(); ?>">
    
                            <?php include (TEMPLATEPATH . '/post-thumb.php'); ?>
    
                            <div class="entry clearfix">
                                <h2><a href="<?php the_permalink() ?>" rel="<?php _e("bookmark"); ?>" title="<?php _e("Permanent Link to"); ?> <?php the_title(); ?>"><?php the_title(); ?></a></h2>
                                <?php if ( $wp_clear_post_content == 'Excerpts' ) { ?>
                                <?php the_excerpt(); ?>
                                <?php } else { ?>
                                <?php the_content(''); ?>
                                <?php } ?>
                            </div>
    
                        </div>
    
                        <?php include (TEMPLATEPATH . "/postinfo.php"); ?>
    
    <?php endwhile; endif; ?>
    
                        <?php include (TEMPLATEPATH . "/bot-nav.php"); ?>
    
                    </div>
    
                <?php } ?>
    
                </div>
    
                <?php if ( $wp_clear_home_layout == '3-column' && $wp_clear_home_posts_by_cat == no ) { ?>
    <?php include (TEMPLATEPATH . "/sidebar-left.php"); ?>
                </div>
                <?php } ?>
    
            </div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    Just Waiting

    Samuel B
    Participant

    @samboll

    not sure what you are speaking of – I see images in your posts

    Samuel B
    Participant

    @samboll

    Thanks For No Help

    wow – you got someone to answer in 9 minutes and that is “no help”.
    yikes

    I want To Make My Theme Like This

    I tried to solve From This
    http://codex.wordpress.org/Function_Reference/the_excerpt

    But I want To Mke It Like The Crshare Blog

    Sorry Mr.Samuel B But Realy I wanna Make It Like This Theme

    When I Post There Is No Images

    When I Modified The Full Post Show’s

    But In Crshare Blog Just Images And A Little Word’s From The Post

    How To Make

    Thsi Is what I Changed

    <?php the_excerpt(); ?>

    to

    <?php the_content( $more_link_text, $strip_teaser, $more_file ); ?>

    Samuel B
    Participant

    @samboll

    I must say I have no idea what you want
    added modlook – maybe another mod will understand

    Sir Do You See The Article’s On The Site

    http://crshare.com/

    I Need To Make It The Same On My Blog

    In My Site It’s Only Word’s Without Images

    In The Other Blog The Images Are Shown

    I Tried To Modify

    <?php the_excerpt(); ?>

    to

    <?php the_content( $more_link_text, $strip_teaser, $more_file ); ?>

    But The Full Post Is Shown But In The Other Blog Just A Summery.

    This Is What I Need

    The automatic excerpt strips images by default. If you want it to not do so, then you can create your own custom excerpt for each post. If a post has a custom excerpt, that gets used instead of one getting auto-generated.

    How To Make It Automatic From The Theme File I Tried To Modify But It Just Show’s The Full Post .

    Edited, did not read using the same theme!

    David 😉

    I Think You Didn’t Understand Me Adeptris

    I Don’t Need It In twenty ten child theme

    In Wp Clear Theme The One On My Blog

    Yeah I see that after I read your post again!

    This would be in the loop, and if your theme has thumbnail (WP post thumbnail) support.

    <?php if ( $wp_clear_post_content == 'Excerpts' ) { ?>
    <?php /* Get the thumbnail and make it centered and a link */ ?>
    <?php if(has_post_thumbnail()): ?>
    	<div class="cms-image" style="margin: 0 auto;">
    	<a href="<?php the_permalink() ?>"> <?php the_post_thumbnail(); ?></a>
    	</div>
    <?php endif; ?>
    <?php /* End the thumbnail support */ ?>
             <?php the_excerpt(); ?>
    <?php } else { ?>
             <?php the_content(''); ?>
    <?php } ?>

    HTH

    David

    didn’t Work david

    Just A Blank

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘need help to make post's like this blog’ is closed to new replies.