Home>Support>How to insert shortcode which outputs inline text into SiteOrigin Editor

How to insert shortcode which outputs inline text into SiteOrigin Editor

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. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 7 years, 1 month ago DaveR

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

  2. 7 years, 1 month ago Alex S
    Hi, I Work Here

    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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More