Custom Post Type UI
[resolved] featured image not linking to post url (3 posts)

  1. saynw
    Posted 4 years ago #

    Hi everyone!

    The featured image is not linking to the custom post type url.

    As you can see in this page http://www.chacrasdecoria.travel/hoteles I list a number of hotels and just the title is linking to the hotel url.

    How can I fix that?



  2. Brad Williams
    Plugin Author

    Posted 4 years ago #

    You need to update the page template that powers that code and add a link around the image.

  3. saynw
    Posted 4 years ago #

    Brad, thanks for your comment. I identified the code around the image, however I don´t know what code to add and where!

    I think I should add the code around entry-previewimage however don´t know how to add a link, would you help me with that?


    div class="novedades_hotel">
    				<h1 class="entry-heading">
    					<a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link:','newscast')?> <?php the_title(); ?>">
    					<?php the_title(); ?>
    				<div class="entry-text">
    						echo '<div class="entry-previewimage rounded preloading_background">';
    						echo $preview_image;
    						echo '</div>';

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Post Type UI
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic