Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

I want a shortcode feature

  • #4529
    Avatar photo[anonymous]

    I want the shortcode feature in WordPress.

    • simply output  [shortcode]
    • changed from a parameter to output [shortcode param1=”abc”]

    I’d be very happy to be on board.

    #4659
    Avatar photo[anonymous]

    Hi,

    In fact you can create such feature with helpers.js file: https://getpublii.com/dev/how-to-create-custom-handlebars-helpers/#how-to-create-custom-handlebars-helpers

    You have to create a helper which will get the whole post content and then you can find your [shortcode] and replace it to what you want

    #4713
    Avatar photo[anonymous]

    Hi Tomasz,

    Thanks for your reply.
    I will try the method you taught me.