This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

How to insert shortcode which outputs inline text into SiteOrigin Editor

8 years ago · Last reply by Alex S 8 years ago

I created a custom (bog standard WordPress) shortcode. All that the associated function does is to echo a single word of text. I want to insert the shortcode into the middle of a paragraph of text which I created in SiteOrigin Editor. The shortcode is obviously being picked up but the word output by it appears in a paragraph of its own above the paragraph that I wanted it to be in. What am I doing wrong?

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

2
  1. DaveR 8 years, 6 months ago

    Sorry, me being stupid, replaced echo with return and all is well.

  2. Alex S Staff 8 years, 6 months ago

    Hi Dave,

    I’m glad you were able to resolve this issue. I’m sorry I wasn’t able to be of assistance this time. Please be sure to post another thread if you have any other questions.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread