to the part of the post that you want to split.
To show the pagination at the bottom of the post, insert the line
<?php wp_link_pages();?> |
to your theme single.php after the line <?php the_content('read more ...'); ? >
4) Add a thumbnail for each post
Have you ever wondered how others manage to embed a thumbnail for every single post? Well, you can simply do it by adding a custom field into your post.
In your WordPress Write section, scroll down to find 'Custom Fields'. Click on it to reveal the input fields. Under the Key, type 'thumbnail'. Under the value, type the URL of the thumbnail image that you want to embed. Click 'Add Custom Field'.
To display the thumbnail on your blog, you can query it by inserting the following line to your wp theme.
<img src="<?php echo get_post_meta($post->ID, 'thumbnail', true); ?>" alt="" width="80" height="80" /> |
Receive the latest update in your inbox.
Or connect with us:





Dear Sir,
this article is just what I was looking for! Thank you very much for this great article and sharing!!
Happy New Year :razz:
Hi, could you please give me more info. You said at the end of the article to query this:
<img src=”ID, ‘thumbnail’, true); ?>” alt=”” width=”80? height=”80? />
What do you mean by that phrase?
I installed the plugin, the specific category goes to Latest Reviews tab as you can see in start page of my blog. I made the thumbnails (to specific pixel width). Uploaded and added them as custom thumbnails fields in the specific posts. But it doesn’t show the images. I have stuck in this query thing.
Tried also to embed the above code to sidebar.php of theme, but with no success! Any help would be appreciated. Thanks for your time and sharing knowledge.
In your WP themes, open up the single.php. Before the line
, paste the above query tag in.In your WP themes, open up the single.php. Before the line
< ?php the_content(); ?>, paste the above query tag in.