Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,151,855 members, 7,813,912 topics. Date: Tuesday, 30 April 2024 at 09:24 PM |
Nairaland Forum / Science/Technology / Webmasters / How Can I Add Thumbnail Image To Carrington Mobile Post (2005 Views)
How To Add Nested Comment To Feature To Carrington Wp Theme / How Can I Add Thumbnail Images To My Post And Make It Show In Homepage (blogger) / A-Z: Installing And Customizing Carrington Mobile Theme For Wordpress - (2) (3) (4)
How Can I Add Thumbnail Image To Carrington Mobile Post by segunyomi1: 6:18am On May 28, 2015 |
Please how to I add related post to Carrington mobile theme post on my WordPress website, please som1 help me |
Re: How Can I Add Thumbnail Image To Carrington Mobile Post by donsheddy1(m): 9:06am On May 28, 2015 |
I don't know your html/css abilities but here's a simple fix for you if you know how to use bootstrap, it's just <img src="img-url" class="img-thumbnail" /> Or if you know the size you want your thumbnail to carry, just use this <img src="img-url" width="12px" height="3px"/> Then if your php is good > then use this code to display recent post on your blog. <?php query_posts('showposts=1'); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <li class="lnk2">">Read the Blog <?php endwhile; else: ?><p>no latest article!</p><?php endif; ?> Use this one to display related post <?php //for use in the loop, list 5 post titles related to first tag on current post $tags = wp_get_post_tags($post->ID); if ($tags) { echo 'Related Posts'; $first_tag = $tags[0]->term_id; $args=array( 'tag__in' => array($first_tag), 'post__not_in' => array($post->ID), 'posts_per_page'=>5, 'caller_get_posts'=>1 ) $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query- >the_post(); ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title (); ?></a> <?php endwhile; } wp_reset_query(); } ?> ---------------------------- If na problem for you then Contact 08031975415 |
Re: How Can I Add Thumbnail Image To Carrington Mobile Post by seegi(m): 11:10am On May 28, 2015 |
donsheddy1:Bross this one didnt work for me somebody shld shre anoda one. I meand d related post code. Help. Demo @ www.naijamember.com.ng. Dat is d related post i nid |
Re: How Can I Add Thumbnail Image To Carrington Mobile Post by donsheddy1(m): 12:04pm On May 28, 2015 |
seegi:it didn't work for you because you didn't know how to use it. Anyway wait for a miracle or contact a developer. Have a nice day. |
Re: How Can I Add Thumbnail Image To Carrington Mobile Post by Jack188: 4:00pm On Jun 09, 2015 |
And what about GIFs? Can I use some from http://gifsgallery.com for example for such a purpose? I want to |
(1) (Reply)
How Can I Pay For Website Hosting On Goddady Website With Nigeria Mastercard. / Payment Gateway/processor (international/local) That Offers Simplified Payment / PROMO TIME: Own A Professional Website (.com, .org, .net, Etc.) With Just #6400
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 17 |