WordPress.org

Support

Support » Plugins and Hacks » How can I remove the thumbnails from previous and next_image_link() functions?

How can I remove the thumbnails from previous and next_image_link() functions?

  • Hi,
    I’m trying to remove the thumbnail and replace it with text in the previous_image_link() and next_image_link() functions defined in wp-includes/media.php on line 426.

    Following the functions in the WP core, it doesn’t look like there are any arguments to pass to it that would accomplish this. Do I need to re-create my own functions just to remove the thumbnail or is there another way to create previous and next image links w/o the thumbnails?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m in the same boat, I just want links with next/previous arrows at the top for easy navigation without thumbnails which I have below.

    I made a new next_image_link function using the old one but I cant get the url working. I’ve tried some different functions but can’t get the url links for the next or previous image. 🙂

    $l = wp_get_attachment_url($_post->ID);
    $p = '<a href="' . $l . '">next</a>';

    I’m trying to mod the function from this post.

    I created a plugin that does this:: It’s linked here.

    Nice! can’t wait to play around with it this weekend.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How can I remove the thumbnails from previous and next_image_link() functions?’ is closed to new replies.