Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Eric Amundson

    (@sewmyheadon)

    Howdy ajithsomaratne,

    can I show only post thumbnail?

    Absolutely, and it’s not that hard.

    Here are the rough steps:

    1. You’ll need to change your output template. See the FAQ for general info, or browse forum threads where there are many examples of output customizations.
    2. Add the featured image to your output template and remove the items you don’t need.
    3. Since you have complete control over the output, you can add any classes needed to your output so that you can:
    4. target them with CSS, so you can style them as you wish.

    If you check out this thread, you’ll see an example of how I suggested someone else customize their output template. For you, I’m guessing you could start by editing your output template as follows:

    After you’ve copied the output template file from the plugin’s directory over to your theme directory, I’d open it in your code editor of choice and change this:

    <!-- Note: if you make changes to this file, move it to your current theme's
    	directory so this file won't be overwritten when the plugin is upgraded. -->
    
    <!-- Start of Post Wrap -->
    <div class="post hentry ivycat-post">
    	<!-- This is the output of the post title -->
    	<h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
    
    	<!-- This is the output of the excerpt -->
    	<div class="entry-summary">
    		<?php the_excerpt(); ?>
    	</div>
    
    	<!-- This is the output of the meta information -->
    	<div class="entry-utility">
    		<?php if ( count( get_the_category() ) ) : ?>
    			<span class="cat-links">
    				<?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>
    			</span>
    			<span class="meta-sep">|</span>
    		<?php endif; ?>
    		<?php
    			$tags_list = get_the_tag_list( '', ', ' );
    			if ( $tags_list ):
    		?>
    			<span class="tag-links">
    				<?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
    			</span>
    			<span class="meta-sep">|</span>
    		<?php endif; ?>
    		<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
    		<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
    	</div>
    </div>
    <!-- // End of Post Wrap -->

    to something more like:

    <!-- Start of Post Wrap -->
    	<!-- This will output of the featured image thumbnail  -->
    	<div class="featured-image">
    		<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( 'thumbnail' ); ?></a>
    	</div>
    </div>
    <!-- // End of Post Wrap -->

    or, if you wanted to add a caption, you might try something like:

    <!-- Start of Post Wrap -->
    <div class="post hentry ivycat-post">
    	<!-- This will output of the featured image thumbnail  -->
    	<figure class="featured-image">
    		<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( 'thumbnail' ); ?></a>
    		<figcaption><?php the_title(); ?></figcaption>
    	</figure>
    </div>
    <!-- // End of Post Wrap -->

    Really, you can customize the markup however works for you and your site.

    I often suggest checking out your existing theme’s classes and IDs to see what you can apply to your output template to make it fit within your theme’s existing styles.

    Using Chrome’s Dev Tools, or Firefox Dev Tools, you can quickly inspect a page to see what styles are being applied to an element, which can give you clues on how you might tweak the output template markup.

    I hope that helps!

    Cheers!

    I appreciate you answering this, as I have the same issue. My problem is that I can’t copy over the file to templates, because I don’t have FTP access to the site. I am also VERY MUCH not a dev. Is there a simpler (less techy) way to do this?

    All I need is for the featured image to show as a thumbnail to the left of the post…

    Thanks

    • This reply was modified 9 years, 6 months ago by DebiHodges.
    • This reply was modified 9 years, 6 months ago by DebiHodges. Reason: more info added
    Plugin Author Eric Amundson

    (@sewmyheadon)

    Howdy @debihodges,

    My problem is that I can’t copy over the file to templates, because I don’t have FTP access to the site. I am also VERY MUCH not a dev. Is there a simpler (less techy) way to do this?

    Really, no. Not at this time. We’re looking at adding features for this in the near future, but for now, it’s pretty manual.

    In order to customize the output template, you’ll want some sort of access to the files. If you don’t have FTP, could you get access through a hosting account file manager?

    You could feasibly edit the posts_loop_template.php file through the Plugin editor, if it’s enabled on your site, but that’s really sketchy and not recommended as the customizations can be wiped out with future plugin updates.

    I hope that helps!

    Eric

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Can i Show only post thumbnail?’ is closed to new replies.