• Resolved dacaicer

    (@dacaicer)


    Hello, could you help me please, I need that when clicking on the featured image directs to the post, what I must modify to make it happen

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • One way would be to edit the plugin file ajax-filter-posts.php, line 312 from:

    <div class="am_thumb">
    	<?php the_post_thumbnail('full'); ?>
    </div>

    to:

    <div class="am_thumb">
    	<a href="<?php echo get_the_permalink(); ?>"><?php the_post_thumbnail('full'); ?></a>
    </div>

    But that will get overwritten by the next plugin update. It would be better if the developer could add a “link_thumbnail” parameter to the shortcode and update the template to something like:

    <div class="am_thumb">
    	<?php } if( $args['link_thumbnail'] == true ){ ?>
    		<a href="<?php echo get_the_permalink(); ?>"><?php the_post_thumbnail('full'); ?></a>
    	<?php } else { ?>
    		<?php the_post_thumbnail('full'); ?>
    	<?php } ?>
    </div>
    Plugin Author AddonMaster

    (@addonmaster)

    Thanks for your suggestions. We’re already working on it and added lots of new shortcodes.

    hopefully you can use those in next updates.

    Thread Starter dacaicer

    (@dacaicer)

    • Thanks for the help, best regards
    • This reply was modified 1 year, 11 months ago by dacaicer.
    Thread Starter dacaicer

    (@dacaicer)

    Thank you @eric3d , best regards

    ??

    • This reply was modified 1 year, 10 months ago by mariusz86.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Link in featured image’ is closed to new replies.