-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Increase compatibility with Elementor #59
Comments
You're not the first one to ask for this, and I've once been through the process of trying to figure out how this works. We couldn't figure it out then, even with Elementor support. Considering how unpleasant dealing with the Elementor support was, I'm not terribly thrilled to go down that path again. I don't have Elementor Pro and even if I had, I have no idea where in their code to start digging for this. And even if I could find out how to fix this, there's no guarantee Elementor will implement that. So, unfortunately, this seems like a lose-lose case for me. If Elementor can't find the excerpt from |
Thanks for the swift response! I stumbled upon similar requests but they were a couple years old so I figured asking again won't hurt. I can imagine that working with Elementor Support is not really pleasant at times. Personally I dug through a significant amount of the Elementor and Elementor Pro Source Code. Still I cannot precisely think of a solution for this. Elementor has its' own implementation of retrieving the post excerpt which you can find in
The posts widget's excerpt rendering comes from
I have thought of some hook to trigger the Relevanssi excerpt generation right before rendering it but I suspect that the Elementor Widget uses another Query object than the main or is_search Query Object. Haven't tested though. Looking at that maybe you can think of something that might work? |
It doesn't matter which query object is used. Relevanssi can generate the excerpts if you have the search term (which you can get from If you look at the |
Interestingly, if I enable my Elementor search template, the post_excerpt is the default WP post_excerpt. If I disable it then the Relevanssi post excerpt is assigned to the key. |
That makes sense. When the Elementor search template is enabled, Elementor doesn't use the post object Relevanssi has prepared but instead loads the post object from |
I'm going to do some research and test some stuff and will be reporting back to you with what I find in a few days. In the meantime I have found another small issue in the Plugin which I will open another issue on today. |
Hi there,
We are currently testing your Plugin's free version and I have to say - We are impressed!
We consider buying the premium lifetime license but there is one requirement missing in the current state of the plugin - compatibility with the Elementor Pro Posts Widget.
More specifically the custom excerpt feature is not compatible with the excerpt displayed in the Posts widget. If I understand correctly you are storing the excerpt in the main queries
WP_Query
object in theexcerpt
/post_excerpt
attribute which should be output upon invokingthe_excerpt
. Elementor does it the recommended way though still it does not work.Maybe I am missing something and I am unsure if this is the right place for such an issue as it may possibly be caused by Elementor (I have opened an issue on the Elementor Github as well https://github.com/orgs/elementor/discussions/27316).
If any further information is required on the topic I am happy to oblige so feel free to discuss this matter at any time.
Thanks for your time.
The text was updated successfully, but these errors were encountered: