For some reason some of my images in posts arent showing, but when I click read more they do. Any help would be great.
For some reason some of my images in posts arent showing, but when I click read more they do. Any help would be great.
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.
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?
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?
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 :(
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.
so I replace the whole block above with just the one line of code? because I did that and it didnt work
I even changed it in the loop file and reuploaded and it didnt work.
I am using the twenty ten theme , can you edit the file and send me the one to upload/save
I did all that and it dont work. What do you suggest?
Please stop posting every few minutes. Revert loop.php back to it's original form and I'll try to post something later on.
ok thank you
Can I get some help please.
Try this code for loop-category.php: http://wordpress.pastebin.com/pkX07aaL
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!
Thank you!
Hey tunermag, is everything okay? :D You seem to be getting thumbnail in your category archive. Is that what you wanted..
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??
This topic has been closed to new replies.