• 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)
  • 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.

    Thread Starter tunermag

    (@tunermag)

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

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

    Thread Starter tunermag

    (@tunermag)

    <?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.

    Thread Starter tunermag

    (@tunermag)

    What do I edit?

    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: https://www.siostraproductions.com. There should be pictures under “siostra in action” tab.

    Please help!

    Thread Starter tunermag

    (@tunermag)

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

    Thread Starter tunermag

    (@tunermag)

    so what do I do?

    Thread Starter tunermag

    (@tunermag)

    anyone?

    Thread Starter tunermag

    (@tunermag)

    does anyone know how to post on here lol?

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

    Thanks,

    Thread Starter tunermag

    (@tunermag)

    Its all good.

    Thread Starter tunermag

    (@tunermag)

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

    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(); ?>.

    Thread Starter tunermag

    (@tunermag)

    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.