Hello @meir321
you can also extend the shortcode and set your own headings. Then what you are looking for should actually work. You can have a look at it.
Below you will also find a link to the other shortcode attributes of Helpful.
[helpful heading="My new heading!"]
See: https://helpful-plugin.info/docs/getting-started/shortcodes/
@meir321
Awesome! Thank you for your feedback. Have a nice week!
Stay healthy!
Hi, upon further testing it either stopped working or it never worked. When voting on a single helpie faq embedded with a shortcode on a page called for example Q&A, the helpful log and email will always only display Q&A as the title.
@meir321
The Helpful heading is actually only overwritten when a new heading is inserted in the metabox, directly in the Q&A page. Otherwise the heading is taken from the arguments you defined with heading=””.
Here you can see that the heading is changed if in the metabox directly in the page, an own heading was set:
https://github.com/pixelbart/helpful/blob/master/core/modules/class-frontend.php#L337
And here you can see how Helpful uses the arguments of the shortcode after taking the default values:
https://github.com/pixelbart/helpful/blob/master/core/modules/class-frontend.php#L298
This should work so far. The only important thing is that Helpful does not yet process the instances themselves and you will then always see the heading in the backend. Helpful itself saves the instances anyway, but you don’t see them yet, because I haven’t implemented that yet. I have only in advance already “created” in the background. The output I still have to build and also still think out.
Originally this was not possible at all, with the shortcodes. That came in only later. More about the instances and the current state, you can learn here:
https://github.com/pixelbart/helpful/releases/tag/4.4.51
Since I do everything alone, it always takes quite a long time and I do Helpful only as a hobby, which is why Helpful is open-source and anyone can join if they want and can. Unfortunately I’m usually the only one doing anything here ☺️
Hi, your work is truly appreciated! I don’t think there is another plugin that does this so well.
I’m not really a programmer so I can’t really follow the code.
You wrote
The Helpful heading is actually only overwritten when a new heading is inserted in the metabox, directly in the Q&A page.
I didn’t write anything in any metabaox on the Q&A page. I don’t even know where I can find a metabox on that page. All I did was customize every helpful shortcode with the custom heading heading="My new heading!" but whenever I vote on a FAQ embedded on the Q&A page, it shows in the logs and email as Q&A, not as the custom heading.
This should work so far. The only important thing is that Helpful does not yet process the instances themselves and you will then always see the heading in the backend.
Do you mean to say that it doesn’t work yet?
Thank you for your time!
@meir321
Right. So everything is already saved correctly, but you yourself can’t see it yet. I have to make it visible first. You can continue to use this so, with an update, when I have built this, everything is then shown correctly.
So it’s already saved correctly, just not shown yet.
So basically this feature is not supported yet. Do you have a timeframe on this?
Thank you!
@meir321
Unfortunately not at the moment. Now before Christmas it doesn’t look good, there are many other things. Currently, the feature is also not much in demand, which is why my prioritization is still in the bug fix. Unfortunately, this is not only a small feature, I have to adjust a lot in the backend.
I have it on my list though, which I recently worked through. So it shouldn’t take that long. I can’t tell you a time because I don’t do contract work here. It’s just a hobby and I treat it as such.
I’ll tag you here though, so you’ll know.