Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8695675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:05:39+00:00 2026-06-13T01:05:39+00:00

Any way in Expression Engine to simulate WordPress' shortcode functionality? I want to abide

  • 0

Any way in Expression Engine to simulate WordPress' shortcode functionality?

I want to abide by community rules, and there’s a disclaimer when clicking in the “answer” section of an existing question that says I should actually ANSWER the question, not respond to other answers.

As such, I have the same question as the one above. I am a dev with roots in WordPress and I would like to mimic the behavior of WP shortcodes in Expression Engine. All I want to do is save a snippet of code as a template that can be re-used all across my site.

For example, if I want to use an accordion menu on several pages, I could just click click while editing a page and the code appears with placeholder content that the user/dev can then replace with real content). Do I need a graphic slideshow? Click click, define the images/headings/text overlays.

As I’m posting this, I’m about to scour the EE plug-ins library but since I haven’t found anything before, I wanted to post here first.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T01:05:39+00:00Added an answer on June 13, 2026 at 1:05 am

    Short answer: there is not such a thing … yet. The Shortcode add-on is currently in beta.

    Long answer for now: use custom fields. Example: a Matrix field for your accordion, with your columns defined, and add as many row as you like. Then add tags for that in your template.

    Same with a Gallery – create a Gallery field (Matrix works great for this again), then add the code to your template to build the gallery.

    If these fields are made optional, then they only appear on the front-end when used.

    If you want to get fancy and inject these chunks of content into your main content area, you can use NSM Transplant to do so.

    Here’s a simplified snippet of code I use on one site to acheive this:

    {exp:nsm_transplant:body}
    
        {inline_media}
        {exp:nsm_transplant:content id="media_{row_count}"}
        <figure class="{alignment}">
        {exp:ifelse parse="inward"}
            {if image}
                {if "{alignment}" == "aligncenter"}
                    {exp:ce_img:make src="{image:resized}" width="860" quality="80" output='<img src="{made_url}" alt="" />'}
                {if:else}
                    {exp:ce_img:make src="{image:resized}" width="430" quality="80" output='<img src="{made_url}" alt="" />'}       
                {/if}
            {if:elseif video}
                {if "{alignment}" == "aligncenter"}
                    {exp:antenna url="{video}" max_width="860"}
                {if:else}
                    {exp:antenna url="{video}" max_width="430"}
                {/if}
            {if:elseif gallery}
                {gallery}{embed="galleries/_embed" entry_id="{entry_id}"}{/gallery}
            {/if}
            {if caption}<figcaption>{caption}</figcaption>{/if}
            {/exp:ifelse}
        </figure>
        {/exp:nsm_transplant:content}
        {/inline_media}
    
        {content}
    
    {/exp:nsm_transplant:body}
    

    In this case authors use {media_1}, {media_2} etc, to embed photos, videos, and galleries inside the content.

    Another solution you can look at is Content Elements, which allows a more freeform method of populating an entry with a single custom field.

    Hope that helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to format this so it's a valid expression, without adding
Is there any way to write an expression that gets the current context/workflowid? I'd
Is there any way to evaluate a string expression in XSL? example: <myItem id=1>
Is there any way that regular expression match inside a if block would interfere
Is there any way to decompile a regular expression once compiled?
Is there a way to force expression engine to NOT render items within curly
Is there any way of generating random text which satisfies provided regular expression. I
Is there any way to pass this into an Immediately-Invoked Function Expression, without resolving
Is there any way to have an expression in brackets not be caught in
Is there any way to bring some functional programming to C++ , I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.