Recent Topics

1 Oct 27, 2013 17:35    

Hey guys.

I'm trying to get just the permalink for the previous and next posts and output it into my skin. Just trying to stick previous and next links in my site's headers ala <link rel="next" href="next URL"> <link rel="prev" href="previous URL">

Been trying to use <?php item_prevnext_links(); ?> but not had any luck, as obviously this pulls in more than the just the URL.

Is there a way to cut it down to just a single URL?

Thanks!

2 27 Oct 2013 19:06

Hi @dasmirnov,

Yes, there is a way. Try using this:


<?php 
echo $MainList->get_prev_item_url(); //previous item

echo $MainList->get_next_item_url(); //next item
?>

Regards !


Form is loading...