Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • sloanish
    Participant

    I am using a series of shortcodes that work with a plugin.

    Here is the raw code
    <h2>Property Description</h2>
    [ownerrez type=”listing” id=”ORP391935″ field=”shortDescription”]

    <h2>Property Details</h2>
    [ownerrez type=”listing” id=”ORP391935″ field=”description”]

    <h2>Amenities</h2>
    [ownerrez type=”widget_amenities_table” id=”ORP391935″]

    Is there a way to use shortcoder to define a “variable” such as
    Propid = “ORP391935” and then use it in the raw code on that page?

    Hi there,

    Thanks for using Shortcoder. With shortcoder, we cannot implement any programming related concepts like variables, loops and conditions.

    However, I can suggest you use “custom parameters”.
    More details here – https://www.aakashweb.com/docs/shortcoder/custom-parameters/

    You can create a shortcode with ORP391935 replaced with a parameter like %%myid%% and then use the shortcode like [sc name="hey" myid="ORP391935"][/sc]

    Thanks,
    Aakash

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Subscribe for updates

Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter