• Resolved anteroriihimaki

    (@anteroriihimaki)


    I’m trying to create a link that redirects to second post and another that links to third post.

    Is it possible to do that with this plugin?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Christoph

    (@camthor)

    Unfortunately it is currently not possible. You would have to customize the code.

    But it sounds like an interesting feature and it’s already on the roadmap from a previous request.

    Simon

    (@simonmaddox)

    +1 for this please!

    If you could just add an offset option to use in the LIMIT query I think this would be easy to add (LIMIT $offset, 1).

    e.g (for penultimate record in a category).
    https://mysite.com/?redirect_to=latest&offset=1&cat=36

    I guess there would need to be some error checking in case there are not sufficient records returned to achieve the offset, but that’s the same if there are no records at all.

    Plugin Author Christoph

    (@camthor)

    @simonmaddox Thank you, I agree. I admit that it is not difficult to implement, I was just too occupied with my job. I will see if I can do it soon.

    Plugin Author Christoph

    (@camthor)

    That should now be possible with the latest version. (parameter “offset”)

    @simonmaddox Instead of the error checking the plugin will simple proceed according to “No posts found”.

    Thanks to all for the great idea!

    Simon

    (@simonmaddox)

    Thanks for the very fast response, @camthor. It works a treat ??

    Hi all,

    I solved the “next post to show” problem using javascript while I was building a signage using WordPress and Chris’ redirect plugin. Please see https://cayfer-wp.bilkent.edu.tr/?p=796 and especially the paragraph titled “Head Meta Data – Plugin Settings” under “Some Important Plugin Settings”.

    It guarantees the next post to be shown once the post in question is picked randomly. But there is good chance that a “second” post could be picked before the “first” post.

    By the way, thanks Chris for the handy plugin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Redirect to second and third post’ is closed to new replies.