Archived topic
duplicate Read More with Custom Excerpt and WPSP
5 replies · Started by Maik on September 14, 2021
Hi.
I want to refer to the Doc "Activating Read More with Custom Excerpt", where I can fix the missing button. This solution is fine so far, but I need a little fix for this because, now I get 2 "read more" buttons, when I also use the Plugin "WP - Show Posts" on my site. Can we exclude WPSP with a filter from this fix? And are there any plans to integrate this fix in GP-core?
Thanks :)
Maik
Hi there,
Any chance you can link us to the site in question?
You can use the private information field:
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
Let me know :)
Sure, here you go. :)
Please scroll down to the last content section to see the WPSP elements.
Hi there,
Do you have PHP snippets on your site? If yes,
Are you using any action hooks or filters that changes the_excerpt?
Hi Elvin.
Yes I´m using some own PHP snippets, but nothing with the_excerpt in it. And I use the button snippet from here.
Like I wrote it is because of using the WPSP-plugin, which also generates the "read more" buttons.
I also could delete the "Read more text" content and just use the button snippet. This could be the easiest way for now I think, until there´s a workaround for the WPSP "read more"?!
Does this help?
Ah that's the one adding the extra button.
You can test this by disabling it. You'll see that the duplicate button on WPSP will disappear when you do. :D