WordPress.org

Ready to get started?Download WordPress

Forums

Accesskeys in next_ and previous_post_link() (6 posts)

  1. Sebastian G K
    Member
    Posted 3 years ago #

    Hello,
    I'm wondering if there is a way of modifying the %link part of the previous_post_link() function?
    I want to be able to add an accesskey attribute to it? Alternatively, is there a way of getting the url for the next and previous post as a string so I can build the link myself?

    I might be overlooking something, or perhaps I haven’t searched properly?

    Any leads welcome,

    Sebastian

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

  3. elfin
    Moderator
    Posted 3 years ago #

    I would seriously advise against the use of accesskeys.

  4. Sebastian G K
    Member
    Posted 3 years ago #

    Thanks @alchymyth. That's what I was looking for. Should have been able to figure it out myself.

    @elfin, may I ask why you advise agains the use of accesskeys? I'm interested in having some form of keyboard navigation on the prev/next links, but I've considered just adding it jQuery.

  5. Root
    Member
    Posted 3 years ago #

    I wish to heck that any kind of access keys worked consistently in all browsers. But even with hacks they just wont. More trouble than they are worth IMHO.

  6. elfin
    Moderator
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic