Forums

Links from one post to other post (5 posts)

  1. 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.

  2. MAK
    Member
    Posted 6 years ago #

    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('&laquo;&laquo; %','') ?></div>
    <div class="floatRight"><?php next_post('% &raquo;&raquo;','') ?></div>

    I hope this helps and is what you were referring to.

    Good luck.

  3. Kafkaesqui
    Moderator
    Posted 6 years ago #

    Vaidulis, this plugin may be useful:

    http://www.semiologic.com/software/smart-link/

  4. 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.

  5. davidchait
    Member
    Posted 6 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.