Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 96706

soumyaunknown@gmail.com on "How to remove anchor from next_post_link & previous_post_link"

$
0
0

Hello
I want to remove anchor(a href) from previous_post_link() AND previous_post_link() functions.

I called them in index.php
to show next & previous pages [where, Number of posts per page = 5]

my code

<div id="morePrev">
                                <?php next_posts_link(); ?>
                                <?php previous_posts_link(); ?>
                                    </div>

Problem is <?php next_posts_link(); ?> AND <?php previous_posts_link(); ?> both are comes in link mode(a href).
I know those functions beside from link-template.php
But I want to get only text of url,ie
http://myblog.com/?paged=1

So I can wrap them in a href with a Javascript onlick Function.

Please help me

Thank you
- Soumya


Viewing all articles
Browse latest Browse all 96706

Trending Articles