[Resolved] Meta Data for “author” – how to set link target?

Home Forums Support [Resolved] Meta Data for “author” – how to set link target?

Home Forums Support Meta Data for “author” – how to set link target?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2063068
    Christian

    Dear Support Team,

    I am using WP Show Posts Pro plugin as well as GenerateBlocks Pro and – of course πŸ™‚ – Generatepress.
    So I am not quite sure if here is the right place to ask a support question – or if it would be the WPSP or the GB support forums.
    I try here – please let me know if there is a better place to ask for some support.
    My problem is following: using WP Show Posts and showing the author (in this case only me) in the Meta Data field, the associated link brings up a link to “*/my-profile/my-name/” (which is restricted since I am the administrator as well and it is in a members-area): the user ends up on the Membersarea login-page.
    I would expect the Meta Data “author” to link to a page that will list all of the posts written by the autor.
    I suspect I would need some php code – however I am hesitate to use it since on the page https://developer.wordpress.org/reference/functions/the_author_posts_link/ the code is flagged as “deprecated”:

    function the_author_posts_link( $deprecated = ” ) {
    if ( ! empty( $deprecated ) ) {
    _deprecated_argument( __FUNCTION__, ‘2.1.0’ );
    }
    echo get_the_author_posts_link();
    }

    Thank you for any advice,
    Best,
    Chris

    #2063215
    Ying
    Staff
    Customer Support

    Hi Christian,

    Not sure I fully understand, do you mean the author name doesn’t link to the author archive page?

    If so, that’s strange, it should be linked to the author archive page by default.

    Can you try disable all plugins except WPSP and GP premium? And if you are using child theme please switch to parent theme to test?

    And please link us to your site where we can see the issue in your next reply, you can use the private info field.

    Let me know πŸ™‚

    #2063715
    Christian

    Hi Ying,

    thank you for your reply.
    I disabled plugins starting with some “suspects”: in fact the membership plugin changes the Meta Data Author’s link in WPSP (not only there) to the pattern: https://mydomain.de/my-profile/my-name/ and seems to hijack the correct URL https://mydomain.de/author/my-name/
    So first I will contact the Memebership-Plugin developer and will report back here.

    Wishing you all the
    Best,
    Chris

    #2064159
    Ying
    Staff
    Customer Support

    Glad you figured it out.

    Hope the plugin support can help with the issue πŸ™‚

    #2064233
    Christian

    Hi Ying,

    as it turns out, there was a tiny hidden option to “disable author redirect to [membership] profile page”.
    Now the link to the “https://mydomain.de/author/my-name/” is working again.

    Thank you for your helpful input,

    All the Best to the whole GeneratePress and GenerateBlocks Team! Have a successful New Year 2022,

    Chris

    #2064252
    Ying
    Staff
    Customer Support

    Thanks for sharing the information πŸ™‚

    Happy new year to yourself!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.