WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Glenn Ansley
    Member
    Posted 6 years ago #

    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.

  2. neilb
    Member
    Posted 6 years ago #

    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.

  3. Glenn Ansley
    Member
    Posted 6 years ago #

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

  4. neilb
    Member
    Posted 6 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic