Featured image issues – custom coding
-
Hi all!
I’ve been trying to get a featured image in my theme and it is showing up. Unfortunately it does not ‘replace’ any inserted images.
For example I have in a post (from text tab);
<img class="size-full wp-image-25 alignleft" alt="stackedclouds-1" src="https://localhost/wordpress/wp-content/uploads/2013/07/stackedclouds-1.jpg" width="600" height="400" />Welcome to WordPress. This is your first post. Edit or delete it, then start blogging! <!--more-->
It’ll then show up two images instead of just one (the featured image). Normally you would see a featured image appear instead of the inserted image. I think at least.
Here’s the theme I’m working on: Test Site
Also the text ‘Welcome to WordPress. This is your first post. Edit or delete it, then start blogging! Read more..’ on the index of the website doesn’t appear next (to the right) of the featured image once no images have been inserted into the post itself.
I managed to come this far but now I’m stuck after trying a bunch of tutorials and codex pages.
Can someone tell me what code I need to insert and where to fix these two issues? I’d like to use ‘manual’ coding instead of plugins.
Thanks for any replies.
Regards, Rudolf
- The topic ‘Featured image issues – custom coding’ is closed to new replies.