• Resolved meir321

    (@meir321)


    Hi, I’m using the Helpie FAQ plugin, the plugin adds a custom post type for FAQ’s and then allows displaying all FAQ’s on a single page with a shortcode.

    I am able to get the Helpful shortcode to display on each of the FAQ’s of the page I am displaying the Helpie FAQ shortcode by using [helpful id=pageid] but the issue is that the feedback doesn’t have the title of the custom post type page, it instead has the title of the page the shortcode is displayed on. I was wondering if there is a way to fix this.

    I know it is possible as the WP Ulike plugin takes the title from the custom post type and not the page title.

    Please advise, thank you

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Pixelbart

    (@pixelbart)

    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/

    Thread Starter meir321

    (@meir321)

    Thank you, it’s working

    Plugin Author Pixelbart

    (@pixelbart)

    @meir321

    Awesome! Thank you for your feedback. Have a nice week!

    Stay healthy!

    Thread Starter meir321

    (@meir321)

    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.

    Plugin Author Pixelbart

    (@pixelbart)

    @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 ??

    Thread Starter meir321

    (@meir321)

    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!

    Plugin Author Pixelbart

    (@pixelbart)

    @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.

    Thread Starter meir321

    (@meir321)

    So basically this feature is not supported yet. Do you have a timeframe on this?

    Thank you!

    Plugin Author Pixelbart

    (@pixelbart)

    @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.

    Thread Starter meir321

    (@meir321)

    Thank you!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Custom Post Type Integration’ is closed to new replies.