Archived topic
default featured image
3 replies · Started by sg on May 16, 2018
Hi , I saw that similar thread and tested the code but its not working.
i would like to add a default featured image in case no image found., how do i achieve this pls. thanks
'
my image is in this dir: ../media/def-img/def-img.jpg
Hi SG,
yes i see that post never got concluded. There are a couple of options listed here, one which requires a child them post_thumbnail function:
https://premium.wpmudev.org/blog/default-featured-image/
I know your aversion to plugins but this is something i have used which also provides category featured images and fall back images:
https://wordpress.org/plugins/category-featured-images-extended/
oh, thats strange it doesnt work either,
how do i append the tax name into this css ?
<footer class="entry-meta">
<div class="cat-links <strong>tax-name-here</strong> ">
<span class="screen-reader-text">Categories </span>
<ul class="post-categories">
<li>
<a rel="category tag" href="https://www.site.com/blog/home-living/">Home & Living</a>
</li>
</ul>
</div>
</footer>
Hi SG, sorry this got overlooked, is this still an issue?