WordPress.org

Support

Support » How-To and Troubleshooting » Posts images not showing on some posts

Posts images not showing on some posts

  • For some reason some of my images in posts arent showing, but when I click read more they do. Any help would be great.

Viewing 15 replies - 1 through 15 (of 27 total)
  • esmi
    Forum Moderator

    @esmi

    Unless you provide a link to a page demonstrating the problem, no one will be able to offer much in the way of specific help.

    http://www.alongthelakeshore.com/category/sight-seeing/ when you click continue reading it will show the image but it dont before that like it should.

    esmi
    Forum Moderator

    @esmi

    Edit your theme’s catgeory template and replace <?php the_excerpt();?> with <?php the_content();?>.

    <?php
    /**
     * The template for displaying Category Archive pages.
     *
     * @package WordPress
     * @subpackage Twenty_Ten
     * @since Twenty Ten 1.0
     */
    
    get_header(); ?>
    
    		<div id="container">
    			<div id="content" role="main">
    
    				<h1 class="page-title"><?php
    					printf( __( 'Category Archives: %s', 'twentyten' ), '<span>' . single_cat_title( '', false ) . '</span>' );
    				?></h1>
    				<?php
    					$category_description = category_description();
    					if ( ! empty( $category_description ) )
    						echo '<div class="archive-meta">' . $category_description . '</div>';
    
    				/* Run the loop for the category page to output the posts.
    				 * If you want to overload this in a child theme then include a file
    				 * called loop-category.php and that will be used instead.
    				 */
    				get_template_part( 'loop', 'category' );
    				?>
    
    			</div><!-- #content -->
    		</div><!-- #container -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Thats my theme’s catgeory template. I dont see that in there.

    What do I edit?

    natalie1023
    Member

    @natalie1023

    Esmi I have a question! I am very new to word press and trying to build my site. The pictures I posted show up on my computer when I visit my site but do not show up on any one else’s computer ( I checked my website on 4 different computers) Do you know how I can fix this?

    Link to my website: http://www.siostraproductions.com. There should be pictures under “siostra in action” tab.

    Please help!

    why dont you make your own thread instead of hacking mine?

    so what do I do?

    anyone?

    does anyone know how to post on here lol?

    natalie1023
    Member

    @natalie1023

    My apologies, no need for rudeness. We are all adults here.

    Thanks,

    Its all good.

    Can anyone help me here? I just need the images to display 🙁

    esmi
    Forum Moderator

    @esmi

    Copy loop.php and call the new copy loop-category.php. Edit this new file and replace:

    <?php if ( post_password_required() ) : ?>
    				<?php the_content(); ?>
    <?php else : ?>
    				<div class="gallery-thumb">
    <?php
    	$images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) );
    	$total_images = count( $images );
    	$image = array_shift( $images );
    	$image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' );
    ?>
    					<a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a>
    				</div><!-- .gallery-thumb -->
    				<p><em><?php printf( __( 'This gallery contains <a %1$s>%2$s photos</a>.', 'twentyten' ),
    						'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"',
    						$total_images
    					); ?></em></p>
    
    				<?php the_excerpt(); ?>
    <?php endif; ?>

    with <?php the_content(); ?>.

    Ok uploading now, lets see if it works.

Viewing 15 replies - 1 through 15 (of 27 total)
  • The topic ‘Posts images not showing on some posts’ is closed to new replies.