WordPress.org

Ready to get started?Download WordPress

Forums

Pinboard
Link to post after clicking image at homepage image format (2 posts)

  1. sleepything
    Member
    Posted 1 year ago #

    Could you help me to link the image from the main page to post itself but not image box? I made some changes in function file to make it look like this but it doesnt work:

    $image = wp_get_attachment_image_src( $attachment->ID, 'full' ); ?>
    <figure>

    "><?php echo wp_get_attachment_image( $attachment->ID, 'image-thumb' ); ?>

    </figure>

  2. Alexander
    Member
    Posted 1 year ago #

    Hi sleepything,

    Clicking at an image on the blog home page takes you to the corresponding post by default. But that's not what you want...?!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.