WordPress.org

Ready to get started?Download WordPress

Forums

need help to make post's like this blog (18 posts)

  1. i2share
    Member
    Posted 3 years ago #

    Hi All Friend's

    I Need To Make My Post's To Be Like This Blog

    http://crshare.com/

    I am using The Same Theme

    But When I Post A Article It Only Shows The Word's Not The Images

    My Blog Is http://i2share.com/

    Plz Need Help In This

  2. i2share
    Member
    Posted 3 years ago #

    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(); ?>
  3. i2share
    Member
    Posted 3 years ago #

    Just Waiting

  4. Samuel B
    moderator
    Posted 3 years ago #

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

  5. Samuel B
    moderator
    Posted 3 years ago #

    Thanks For No Help

    wow - you got someone to answer in 9 minutes and that is "no help".
    yikes

  6. i2share
    Member
    Posted 3 years ago #

    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

  7. i2share
    Member
    Posted 3 years ago #

    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

  8. i2share
    Member
    Posted 3 years ago #

    Thsi Is what I Changed

    <?php the_excerpt(); ?>

    to

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

  9. Samuel B
    moderator
    Posted 3 years ago #

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

  10. i2share
    Member
    Posted 3 years ago #

    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

  11. Samuel Wood (Otto)
    Tech Ninja
    Posted 3 years ago #

    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.

  12. i2share
    Member
    Posted 3 years ago #

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

  13. Digital Raindrops
    Member
    Posted 3 years ago #

    Edited, did not read using the same theme!

    David ;-)

  14. i2share
    Member
    Posted 3 years ago #

    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

  15. Digital Raindrops
    Member
    Posted 3 years ago #

    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

  16. i2share
    Member
    Posted 3 years ago #

    didn't Work david

    Just A Blank

  17. Digital Raindrops
    Member
    Posted 3 years ago #

    The images on that blog are linked in the post via http://imagespacemedia.com/ so maybe a plugin or just dropped in links of some sort.

    It's a WordPress Ad Link PlugIn

    Is that what you want to do affiliate linked images, or to use your own featured images?

    Your theme might not be enabled for post images.

    David

  18. Digital Raindrops
    Member
    Posted 3 years ago #

    Ok if you want to try this, the images on the other website are maximum 350px on the longest side.

    In the functions.php if not already there add!

    /* Start WordPress Thumbnail Support Code */
    add_theme_support( 'post-thumbnails');
    set_post_thumbnail_size( 350, 350, false); // Normal post thumbnails
    add_image_size( 'single-post-thumbnail', 400, 9999 ); // Permalink thumbnail size
    /* End WordPress Thumbnail Support Code */

    Then the loop code above will work, the margin style should center the image.

    NOTE: You will need to set the featured image in the admin 'post edit' screen, WordPress does not create them for older posts.

    HTH

    David

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.