WordPress.org

Forums

Polylang
[resolved] get_author_posts_url is 404 (3 posts)

  1. djheavenly
    Member
    Posted 3 years ago #

    I used the get_author_posts_url function to generate the author page link, but the link comes back with /en/ and that isn't valid since author pages aren't language specific it seems.

    can we make the /en/ links work (only show posts for that author in that language)?

    can we make the function not return the language?

    Thanks,
    -Steph

    http://wordpress.org/extend/plugins/polylang/

  2. Chouby
    Member
    Plugin Author

    Posted 3 years ago #

    You found a bug... The normal way of working is that get_author_posts_url is filtered to add the language parameter. Then the author archive page is filtered to display only posts written by the author in the current language. I will correct this in 0.8.2. You can already download the development version to benefit from the bug correction.

  3. djheavenly
    Member
    Posted 3 years ago #

    0.8.2 fixed it. THANKS!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Polylang
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags