puneetjain wrote:Is there a possibility to add featured image after the first paragraph of every post? [As far as I have seen, it above the post.]
Sorry but there is no way to place the featured image after first paragraph - you can only place the featured image before the whole text - the featured image is loaded by this line in all content*.php files:
- Code: Select all
<?php include('layouts/content.post.featured.php'); ?>
BUT NOW I HAVE GOOD IDEA and solution for your problem (regarding your second question):
puneetjain wrote:Also, is there any plugin available to convert first images of all the posts into featured images?
I don't see any plugins, but you can try tips like this:
http://www.technophileshub.com/1306/set ... ress-posts Remember to backup your database before this operation!
If you will do this then probably you will have the same image DUPLICATED - as featured image and as image in the content. If yes, please try to make the following change in layouts/content.featured.php.php file:
Fragment:
- Code: Select all
<?php if(has_post_thumbnail()) : ?>
<figure class="featured-image">
<?php the_post_thumbnail(); ?>
</figure>
<?php endif; ?>
Please replace to:
- Code: Select all
<?php if(has_post_thumbnail() && ( is_search() || is_archive() || is_tag() )) : ?>
<figure class="featured-image">
<?php the_post_thumbnail(); ?>
</figure>
<?php endif; ?>
THEN
the featured image won't be displayed on the single post page (the first image will be still displayed)
AND
on the category/tag/search/archive/author pages the first image won't be displayed (because the excerpt doesn't display it) BUT the featured image (the same as the first image) will be displayed there due these changes.
BUT as I wrote - it will work only if the mentioned SQL code will cause that the article will contain two the same images - featured image and first image (this code works only if the images was added to the post using the Media Manager).
IF it will works - please remember to always set in the new articles the featured image as the same as the first image.
Hope this will help