WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
[resolved] Using images for Previous/Next (2 posts)

  1. aaronkarp
    Member
    Posted 3 years ago #

    I know that it's possible to use images to replace the Previous and Next buttons, but can I enter PHP/Template Tags in the <img src> tags in order to point to the stylesheet directory, or do I have to write static absolute links?

    Thanks!

    http://wordpress.org/extend/plugins/wp-pagenavi/

  2. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    You can do it like this:

    wp_pagenavi('', '', array(
      'prev_text' => '<img src="' . get_bloginfo('stylesheet_directory') . '/prev-image.png' . '">',
      'next_text' => '<img src="' . get_bloginfo('stylesheet_directory') . '/next-image.png' . '">',
    ));

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic