Home › Forum › Customization › Clickable featured images at category view + read more button
- This topic has 5 replies, 2 voices, and was last updated 10 years, 10 months ago by
StartupWP.
- AuthorPosts
- April 25, 2015 at 11:47 AM #2231
StartupWP
KeymasterReferring to https://startupwp.com/topic/featured-images-in-category-view/, wrap:
<?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?>With:
<a href="<?php the_permalink(); ?><?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?></a>Then, you can simply manually add the read more here too:
<a href="<?php the_permalink(); ?>Olvass Tovább</a>May 2, 2015 at 1:33 PM #2235kezdovega
ParticipantThese do not work for me :(
I replaced the post thumbnail line with the new one in the entry-summary.php within the child theme, the images disappeared.
When adding the read more line all that changed that the tags went up beside the image (which is very nice tho :D ), and got a Blog (with link) which is the category:
http://prntscr.com/70sb3mMay 6, 2015 at 3:13 PM #2237StartupWP
KeymasterPlease share your code for entry-summary.php.
May 7, 2015 at 9:55 PM #2239kezdovega
Participant<section class="entry-summary"> <?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?> <?php the_excerpt(); ?> <?php if ( is_search() ) { ?><div class="entry-links"><?php wp_link_pages(); ?></div><?php } ?> </section>May 8, 2015 at 11:38 PM #2240StartupWP
KeymasterHave you tried?:
<section class="entry-summary"> <a href="<?php the_permalink(); ?><?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?></a> <?php the_excerpt(); ?> <a href="<?php the_permalink(); ?>Olvass Tovább</a> <?php if ( is_search() ) { ?><div class="entry-links"><?php wp_link_pages(); ?></div><?php } ?> </section> - AuthorPosts
- You must be logged in to reply to this topic.
