Vaidulis
Member
Posted 6 years ago #
How to do link from one post to other post?
Of course I can use direct link to my post (just copy paste link), but this is bad, becuase links can be changed (new permalink structure).
I wanna to do macro like ($link(56)} and it generate link with generate link example http://domain.com/2005-11-10/wordpress-new-version/
I know what post table have filed guid which is needed to use.
I have these for my nav links to go from one post to another using the single.php template:
<!-- PUT NAVIGATION LINKS ABOVE THE PRINTED RESULTS FOR QUICK ACCESS -->
<div class="floatLeft"><?php previous_post('«« %','') ?></div>
<div class="floatRight"><?php next_post('% »»','') ?></div>
I hope this helps and is what you were referring to.
Good luck.
Vaidulis
Member
Posted 6 years ago #
Kafkaesqui: Yes your plugin is good, but i wanted more light :) and I have on my server only php4
Yesterday I founded one:
http://www.coffee2code.com/archives/2005/03/23/plugin-easy-post-to-post-links/
modified a bit because I don't liked comments <!--post="15"-->
so i changed to [post="15"] so i can use in xhtml editor.
CG-Inline and CG-Related both can aid in post-to-post links.
CG-Inline has a 'permalink' inline:
<!--permalink:##.ALTTEXT:LINKTEXT-->
The .ALTTEXT and :LINKTEXT are optional.
CG-Related is specifically made for setting up and managing a table of post relations (for each source post, picking related posts manually). It's currently undergoing a facelift.. ;)
-d