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!
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!
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' . '">',
));This topic has been closed to new replies.