• Hello Everyone,

    I’m attempting to create the following functionality for my site’s theme.

    I want to display, for the newest post, the following (tag details omitted for brevity)

    <a>&laquo;</a>&nbsp;[insert previous post title here]
    [insert newest post tagline]

    For posts that are in the past, the following:

    <a>&laquo;</a>&nbsp;[insert previous post title here]
    <a>&raquo;</a>&nbsp;[insert next post title here]

    For the earliest post, the following:

    [insert earliest post tagline]
    <a>&raquo;</a>&nbsp;[insert next post title here]

    I have looked at the provided template tag api for a little while now and have come to the conclusion that it will not support directly this sort of behaviour (simply not enough configurability). How should I do this?

    I’d prefer to not have to roll my own function but if I have to, no big deal. If there’s a plug-in that allows for more extensible navigation linking, then I’d be happy to use that too.

    Thanks in advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Define “post tagline”.

    And no, there is no known method to make link only the raquo. With the usual template tags the title is also inside of the anchor tag.

    And again, what is a tagline?

    Thread Starter stopsineman

    (@stopsineman)

    That’s text that I have yet to come up with.

    Perhaps this would be clearer, and more grammatically correct:

    [insert earliest-post tagline]

    So basic conclusion is to roll my own function?

    There is no such term in WP as “post tagline”. That’s why it is confusing.

    Thread Starter stopsineman

    (@stopsineman)

    Understood. I see why it was confusing. I tried to make it clear that it was replaced, static text by wrapping it in the square brackets.

    Anyway, is the basic conclusion that I should roll my own function?

    Probably, yes. I have never heard of anything that would do something like that.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Help with creating next and previous navigation links.’ is closed to new replies.