digicandy
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Show thumbnail in excerpt only?Worked like a charm!! Thank you SO much for your help! Looks like it was only a simple line of code… Thanks again! I had been Googling a solution to this for weeks now…
Forum: Fixing WordPress
In reply to: Show thumbnail in excerpt only?No, I am setting the image using “featured image” in WP 3.2.1.
This is the code inside my #content div in index.php (apologize if the formatting didn’t carry over):
<?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post"> <h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1> <span class="serif"><?php the_time('m. d. Y') ?> </span> <small> by <?php the_author_posts_link(); ?></small> <?php the_post_thumbnail('thumbnail'); ?> <?php the_content('Read More »'); ?> <small><b>Posted in:</b> <?php the_category(', ') ?> <?php the_tags(' | <b>Tags:</b> ', ', ', ''); ?> <?php if ( $user_ID ) : ?> | <b>Modify:</b> <?php edit_post_link(); ?> <?php endif; ?>| <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></small> <hr/> </div> <?php comments_template(); ?> <?php endwhile; ?>
Forum: Fixing WordPress
In reply to: Show thumbnail in excerpt only?Another strange thing about this theme, is that there is no archive.php file. Again, I’m new to WP so wasn’t quite sure as to what files were necessary for the structure.
This is the theme I am using: https://www.ads-software.com/extend/themes/clean-home
And this is the link to the site I’m creating with several stylistic changes (very, very rough with only a bunch of filler text). https://www.digitalcandyonline.com/blog/
I just need to somehow remove the thumbnail from the individual post page, and only have it display in the post excerpt on the main blog page.
Thanks again for your input! Thoroughly perplexed on this one…
Forum: Fixing WordPress
In reply to: Show thumbnail in excerpt only?Thank you for your response! I actually thought of that, but am using the “Clean Home” theme, which does not contain the file single.php. I have index.php and page.php.
I’m assuming page.php is similar to single.php?? Although, it does not contain any reference to the_post_thumbnail(), only refers to <?php the_content(‘Read the rest of this entry »’); ?> within the div .post class.
Hmm…
Forum: Fixing WordPress
In reply to: Show thumbnail in excerpt only?Hi! I have another question regarding this issue and hoping someone can possibly point me in the right direction. I’m fully comfortable with XHTML/CSS, but new to PHP and WP.
I basically would like to use the thumbnails in the excerpts only; however, not in the actual post, as I would like to customize the post content myself. Right now the thumbnails display when set to “featured image,” but they also appear in the post, which I do not want.
I’m trying to display the thumbnail, excerpt and a read more link, which will link to the individual post (sans thumbnail). These two sites demonstrate what I am trying to achieve.
https://newwp.templatepanic.com/?themedemo=Scratch
Any help would be greatly appreciated! I just can’t seem to find a solution online… Thanks much. ??