• Resolved Jordi

    (@kukat)


    Hi!
    I try to put the shortcode via “do_shortcode”, but the closing shortcode don’t work. It appears on the page.

    <?php echo do_shortcode( ‘[read more]’ ); ?>

    TEXT

    <?php echo do_shortcode( ‘[/read]’ ); ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author George Gkouvousis

    (@gkouvousisg)

    Hello.

    You cannot add PHP code in post editor. You need to add it to the corresponding PHP file.

    Thread Starter Jordi

    (@kukat)

    Hi!

    I have a “template” called “home-page.php”.

    I find the solution! ??

    <?php echo do_shortcode('[read more]'.'YOUR HTML TEXT'. '[/read]'); ?>

    Thanks a lot for the plugin. ??

    Plugin Author George Gkouvousis

    (@gkouvousisg)

    Glad you sorted out it was a syntax usage issue! Thanks for your kind words – dont forget to leave your honest review here. It will help me continue developing this plugin ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Don’t work via do_shortcode(); on pages?’ is closed to new replies.