WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. saynw
    Member
    Posted 1 year 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?

    Thanks!

    http://wordpress.org/extend/plugins/custom-post-type-ui/

  2. Brad Williams
    Member
    Plugin Author

    Posted 1 year ago #

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

  3. saynw
    Member
    Posted 1 year 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?

    Thanks!

    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(); ?>
    					</a>
    				</h1>
    
    				<div class="entry-text">
    					<?php
    					if($preview_image)
    					{
    						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

About this Topic