- This topic has 5 replies, 2 voices, and was last updated 2 years, 4 months ago by Ying.
-
AuthorPosts
-
December 29, 2021 at 8:46 am #2063068Christian
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,
ChrisDecember 29, 2021 at 11:17 am #2063215YingStaffCustomer SupportHi 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 π
December 30, 2021 at 4:41 am #2063715ChristianHi 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,
ChrisDecember 30, 2021 at 10:20 am #2064159YingStaffCustomer SupportGlad you figured it out.
Hope the plugin support can help with the issue π
December 30, 2021 at 11:44 am #2064233ChristianHi 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
December 30, 2021 at 12:04 pm #2064252YingStaffCustomer SupportThanks for sharing the information π
Happy new year to yourself!
-
AuthorPosts
- You must be logged in to reply to this topic.