WordPress.org

Ready to get started?Download WordPress

Forums

Posts images not showing on some posts (28 posts)

  1. tunermag
    Member
    Posted 3 years ago #

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

  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    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.

  3. tunermag
    Member
    Posted 3 years ago #

    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.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

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

  5. tunermag
    Member
    Posted 3 years ago #

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

  6. tunermag
    Member
    Posted 3 years ago #

    What do I edit?

  7. natalie1023
    Member
    Posted 3 years ago #

    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!

  8. tunermag
    Member
    Posted 3 years ago #

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

  9. tunermag
    Member
    Posted 3 years ago #

    so what do I do?

  10. tunermag
    Member
    Posted 3 years ago #

    anyone?

  11. tunermag
    Member
    Posted 3 years ago #

    does anyone know how to post on here lol?

  12. natalie1023
    Member
    Posted 3 years ago #

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

    Thanks,

  13. tunermag
    Member
    Posted 3 years ago #

    Its all good.

  14. tunermag
    Member
    Posted 3 years ago #

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

  15. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

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

  16. tunermag
    Member
    Posted 3 years ago #

    Ok uploading now, lets see if it works.

  17. tunermag
    Member
    Posted 3 years ago #

    so I replace the whole block above with just the one line of code? because I did that and it didnt work

  18. tunermag
    Member
    Posted 3 years ago #

    I even changed it in the loop file and reuploaded and it didnt work.

  19. tunermag
    Member
    Posted 3 years ago #

    I am using the twenty ten theme , can you edit the file and send me the one to upload/save

  20. tunermag
    Member
    Posted 3 years ago #

    I did all that and it dont work. What do you suggest?

  21. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Please stop posting every few minutes. Revert loop.php back to it's original form and I'll try to post something later on.

  22. tunermag
    Member
    Posted 3 years ago #

    ok thank you

  23. tunermag
    Member
    Posted 3 years ago #

    Can I get some help please.

  24. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Try this code for loop-category.php: http://wordpress.pastebin.com/pkX07aaL

  25. sjwgator
    Member
    Posted 3 years ago #

    I'm having the SAME issue, but with video. I think it has to do with the fact that the page is designated as an Archive page or Category page. I've tried replacing category.php and archive.php with the contents in index.php, but it doesn't work. Any help here would be appreciated!

  26. tunermag
    Member
    Posted 3 years ago #

    Thank you!

  27. Gouri
    Member
    Posted 3 years ago #

    Hey tunermag, is everything okay? :D You seem to be getting thumbnail in your category archive. Is that what you wanted..

  28. shumott
    Member
    Posted 2 years ago #

    I am having a similar problem with a twenty ten theme whereby photos embedded in posts do not display when accessed via a category page??
    I have read the above thread but cannot find a loop-category.php.
    Can anyone help??

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.