I tried embedding a shortcode in Woocommerce emails, but it doesn’t work. That is, copying email-footer.php to my theme\wp-content\themes\theme\woocommerce\emails\email-footer.php and adding shortcode within.
Is there a call I can do or trick so I can use them in emails?
Many thanks!
]]>Hi,
We want to use shortcodes like business_name in the meta-data settings for the title and description.
Our title and description are set in Yoast, and would be good to add the shortcodes into Yoast settings.
Thanks
]]>Hello,
When I want to create a shortcode with shortcoder, there is a blank page.
Here are the errors in the browser console:
jQuery.Deferred exception: Cannot read properties of undefined (reading 'value') TypeError: Cannot read properties of undefined (reading 'value')
at Function.fg [as fromTextArea] (https://xxx/wp/wp-includes/js/codemirror/codemirror.min.js?ver=5.29.1-alpha-ee20357:22:31506)
at d.codeEditor.initialize (https://xxx/wp/wp-admin/js/code-editor.min.js?ver=6.6.1:2:1977)
at load_codemirror (https://xxx/app/plugins/shortcoder/admin/js/script.js?ver=6.4:79:36)
at init (https://xxx/app/plugins/shortcoder/admin/js/script.js?ver=6.4:8:37)
at HTMLDocument.<anonymous> (https://xxx/app/plugins/shortcoder/admin/js/script.js?ver=6.4:313:5)
at e (https://xxx/wp/wp-includes/js/jquery/jquery.min.js?ver=3.7.1:2:27028)
at t (https://xxx/wp/wp-includes/js/jquery/jquery.min.js?ver=3.7.1:2:27330) undefined
ce.Deferred.exceptionHook @ jquery.min.js?ver=3.7.1:2
t @ jquery.min.js?ver=3.7.1:2
setTimeout
(anonymous) @ jquery.min.js?ver=3.7.1:2
c @ jquery.min.js?ver=3.7.1:2
fireWith @ jquery.min.js?ver=3.7.1:2
fire @ jquery.min.js?ver=3.7.1:2
c @ jquery.min.js?ver=3.7.1:2
fireWith @ jquery.min.js?ver=3.7.1:2
ready @ jquery.min.js?ver=3.7.1:2
P @ jquery.min.js?ver=3.7.1:2
jquery.min.js?ver=3.7.1:2
Uncaught TypeError: Cannot read properties of undefined (reading 'value')
at Function.fg [as fromTextArea] (codemirror.min.js?ver=5.29.1-alpha-ee20357:22:31506)
at d.codeEditor.initialize (code-editor.min.js?ver=6.6.1:2:1977)
at load_codemirror (script.js?ver=6.4:79:36)
at init (script.js?ver=6.4:8:37)
at HTMLDocument.<anonymous> (script.js?ver=6.4:313:5)
at e (jquery.min.js?ver=3.7.1:2:27028)
at t (jquery.min.js?ver=3.7.1:2:27330)
fg @ codemirror.min.js?ver=5.29.1-alpha-ee20357:22
d.codeEditor.initialize @ code-editor.min.js?ver=6.6.1:2
load_codemirror @ script.js?ver=6.4:79
init @ script.js?ver=6.4:8
(anonymous) @ script.js?ver=6.4:313
e @ jquery.min.js?ver=3.7.1:2
t @ jquery.min.js?ver=3.7.1:2
setTimeout
ce.readyException @ jquery.min.js?ver=3.7.1:2
(anonymous) @ jquery.min.js?ver=3.7.1:2
e @ jquery.min.js?ver=3.7.1:2
t @ jquery.min.js?ver=3.7.1:2
setTimeout
(anonymous) @ jquery.min.js?ver=3.7.1:2
c @ jquery.min.js?ver=3.7.1:2
fireWith @ jquery.min.js?ver=3.7.1:2
fire @ jquery.min.js?ver=3.7.1:2
c @ jquery.min.js?ver=3.7.1:2
fireWith @ jquery.min.js?ver=3.7.1:2
t @ jquery.min.js?ver=3.7.1:2
setTimeout
(anonymous) @ jquery.min.js?ver=3.7.1:2
c @ jquery.min.js?ver=3.7.1:2
fireWith @ jquery.min.js?ver=3.7.1:2
fire @ jquery.min.js?ver=3.7.1:2
c @ jquery.min.js?ver=3.7.1:2
fireWith @ jquery.min.js?ver=3.7.1:2
ready @ jquery.min.js?ver=3.7.1:2
P @ jquery.min.js?ver=3.7.1:2
api-fetch.min.js?ver=4c185334c5ec26e149cc:2
GET https://xxx/wp-json/wp/v2/types/shortcoder?context=edit&_locale=user 403 (Forbidden)
O @ api-fetch.min.js?ver=4c185334c5ec26e149cc:2
h @ api-fetch.min.js?ver=4c185334c5ec26e149cc:2
(anonymous) @ api-fetch.min.js?ver=4c185334c5ec26e149cc:2
P @ api-fetch.min.js?ver=4c185334c5ec26e149cc:2
(anonymous) @ api-fetch.min.js?ver=4c185334c5ec26e149cc:2
o @ api-fetch.min.js?ver=4c185334c5ec26e149cc:2
(anonymous) @ api-fetch.min.js?ver=4c185334c5ec26e149cc:2
P.method.r @ api-fetch.min.js?ver=4c185334c5ec26e149cc:2
(anonymous) @ api-fetch.min.js?ver=4c185334c5ec26e149cc:2
(anonymous) @ api-fetch.min.js?ver=4c185334c5ec26e149cc:2
o @ api-fetch.min.js?ver=4c185334c5ec26e149cc:2
(anonymous) @ api-fetch.min.js?ver=4c185334c5ec26e149cc:2
(anonymous) @ api-fetch.min.js?ver=4c185334c5ec26e149cc:2
t @ api-fetch.min.js?ver=4c185334c5ec26e149cc:2
(anonymous) @ api-fetch.min.js?ver=4c185334c5ec26e149cc:2
g @ api-fetch.min.js?ver=4c185334c5ec26e149cc:2
(anonymous) @ api-fetch.min.js?ver=4c185334c5ec26e149cc:2
(anonymous) @ api-fetch.min.js?ver=4c185334c5ec26e149cc:2
(anonymous) @ api-fetch.min.js?ver=4c185334c5ec26e149cc:2
j @ api-fetch.min.js?ver=4c185334c5ec26e149cc:2
(anonymous) @ core-data.min.js?ver=07feee0ca98b13ab617d:2
await in (anonymous)
(anonymous) @ data.min.js?ver=7c62e39de0308c73d50c:2
(anonymous) @ redux-routine.min.js?ver=a0a172871afaeb261566:9
(anonymous) @ data.min.js?ver=7c62e39de0308c73d50c:2
(anonymous) @ data.min.js?ver=7c62e39de0308c73d50c:2
(anonymous) @ data.min.js?ver=7c62e39de0308c73d50c:2
setTimeout
s @ data.min.js?ver=7c62e39de0308c73d50c:2
i @ data.min.js?ver=7c62e39de0308c73d50c:2
(anonymous) @ edit-post.min.js?ver=bf7b57a061aad9bf9020:2
(anonymous) @ data.min.js?ver=7c62e39de0308c73d50c:9
__unstableMarkListeningStores @ data.min.js?ver=7c62e39de0308c73d50c:2
(anonymous) @ data.min.js?ver=7c62e39de0308c73d50c:2
p @ data.min.js?ver=7c62e39de0308c73d50c:9
(anonymous) @ data.min.js?ver=7c62e39de0308c73d50c:9
Qe @ data.min.js?ver=7c62e39de0308c73d50c:9
Ye @ data.min.js?ver=7c62e39de0308c73d50c:9
Nt @ edit-post.min.js?ver=bf7b57a061aad9bf9020:2
hu @ react-dom.min.js?ver=18.3.1:2
xi @ react-dom.min.js?ver=18.3.1:2
bs @ react-dom.min.js?ver=18.3.1:2
vs @ react-dom.min.js?ver=18.3.1:2
gs @ react-dom.min.js?ver=18.3.1:2
ls @ react-dom.min.js?ver=18.3.1:2
S @ react-dom.min.js?ver=18.3.1:2
T @ react-dom.min.js?ver=18.3.1:2
]]>
Is there a way I can insert a “Naked Site URL” as a variable with this plugin? I’ve tried to use “Site URL” and “WordPress URL” variables, but both are showing the https://
. I just want the example.com
. How to do this?
Hi there,
Everything’s explained in the video. It seems if I copy a “classic” Gutenberg code with a shortcode (in text or code mode of course), it doesn’t display what’s expected. Some blocks such as Vimeo video don’t work within the shortcode.
Thanks for your help!
]]>Is it possible to add a meta field key in the Shortcode for an Options Field?
Usage: I have a set of meta fields in Site Options Fields that are used site wide (eg name of social feed). I want to be able to embed these in the middle of a text editor using a shortcode.
For the path, /wp-admin/edit.php?post_type=shortcoder
, it says…
You need a higher level of permission.
Sorry, you are not allowed to edit posts in this post type.
I am the only administrator. What can I try next to help resolve this issue?
The issue is the same as was asked 10 months ago; https://www.ads-software.com/support/topic/administrators-on-a-multisite-can-no-longer-add-shortcodes/
But, in my case, it is not a multisite.
It is missing “All Shortcodes” and “Create Shortcode”. So, not possible to add or change any of the shortcoders.
]]>Hello,
I have upgraded to new version v6.3.2 and. the popup asking if I want to upgrade to PRO version can’t be close.
Nothing happens when I click on the “Continue using Shortcoder” button.
I logout, cleared cache, restart browser but the issue still there.
On chrome console I get
jquery.min.js:2 GET https://www.mydomain.com/wp-admin/admin-ajax.php?action=sc_admin_ajax&do=close_changelog 403
When I click on the button
Thanks
]]>Are nested shortcodes supported? I read your comment from an old thread where you said “In version 5.0+ the shortcode content can have another “shortcoder shortcode” there is no restriction.” but in my case there’s a bug where the 2nd shortcoder closing tag is printed on the web page.
I’ve created 2 shortcodes. Shortcode 1 is called “sc-test-nest-1” and contains “SC1 content and $$enclosed_content$$”. Shortcode 2 is called “sc-test-nest-2” and contains “SC2 content”.
In a blank page I’ve inserted this shortcode “[sc name=”sc-test-nest-1″][sc name=”sc-test-nest-2″][/sc][/sc]”.
The result should be “SC1 content and SC2 content”, but it is producing “SC1 content and SC2 content[/sc]”.
Can you please advise on whether nested shortcodes should be working, and how I can fix this?
]]>I used 2 Shortcoder shortcodes when generating an event using another plugin and it’s causing the page to timeout.
Contact us by [sc name="whatsapp-icon"][/sc] or [sc name="email-icon"][/sc].
The developer of the Events Made Easy plugin looked into it and said: “Seems to be a bug in the shortcoder plugin. If I create the 2 shortcodes manually in functions.php , it works fine”.
“it has something to do with the call to do_shortcode on that text. It seems it can cause a loop (and the loop actually happens in do_shortcode, not in EME), but I don’t know why … it doesn’t cause a loop when in the event body nor when I create 2 shortcodes (via functions.php in the theme) and use those in the title.”
Can you please look into why this is happening?
]]>I’ve used the following code, attempting to create a wrapper for less technical users. However, when I add an embed code, Shortcoder adds quotes around the output breaking the iframe. The below script will not work with an iframe. Any help appreciated. Thanks!
<div class="vid_tainer">
$$enclosed_content$$
</div>
]]>
Hi,
I am working on a customer’s site.
They have a huge database we are trying to clean up a little.
I found this wp_options: shortcoder_data is quite big and with autoload = yes.
Is it normal? Is it needed and to be on autoload or could we change it?
Thanks and regards,
Taisa
]]>I’ve received this message from our WordPress host:
The plugin has a vulnerability that makes it possible for authenticated users with subscriber (and higher) permissions to call an AJAX action.?There is no fix available.
Is there an update that resolves this please?
]]>Hi there,
Could you please check this issue in your current version of the plugin?
https://patchstack.com/database/vulnerability/shortcoder/wordpress-shortcoder-plugin-6-3-broken-access-control-vulnerability
Thanks
Can you please fix this?
Abdi Pranata discovered and reported this Broken Access Control vulnerability in WordPress Shortcoder Plugin. A broken access control issue refers to a missing authorization, authentication or nonce token check in a function that could lead to an unprivileged user to executing a certain higher privileged action. This vulnerability has not been known to be fixed yet.
]]>Hi, I created a shortcode with the following but the styling isn’t taking place. Am I missing something?
<div id="mni-widgets-1664300152268"></div>
<script type="text/javascript">
/*<![CDATA[*/
var _mniwq=_mniwq||[];
_mniwq.push(["1664300152268.type","events_upcoming"],["1664300152268.display","text"],["1664300152268.category",6],["1664300152268.limit",5],["1664300152268.marquee",false],["1664300152268.showEndDate",false],["1664300152268.showLocation",false],["1664300152268.showLinks",true],["1664300152268.popUp",true],["1664300152268.dateFormat","MMM d"],["1664300152268.styleTemplate","#@id .mn-scroll-container{font-family:Arial, Helvetica, sans-serif;font-size:14px;line-height:130%;margin:8px;position:relative}#@id .mn-scroll-item{-moz-border-radius:5px;-webkit-border-radius:5px;background-clip:padding-box;background-color:#000000;border-radius:5px;color:#FFFFFF;margin:0 0 4px;position:relative}#@id .mn-scroll-item:hover{background-color:#000000;color:#FFFFFF}#@id .mn-scroll-name,#@id .mn-scroll-teaser{display:block;padding:5px 3px 5px 58px;position:relative}#@id .mn-scroll-link{color:inherit;text-decoration:none}#@id .mn-scroll-link:hover{text-decoration:underline}#@id .mn-scroll-date{font-size:75%;font-weight:700;left:3px;position:absolute;text-align:center;top:5px;width:50px}"],["1664300152268.create","mni-widgets-1664300152268"]);
(function(b,d,a,c){b.getElementById(d)||(c=b.getElementsByTagName(a)[0],a=b.createElement(a),a.type="text/javascript",a.async=!0,a.src="https://cyfairhoustonchamber.chambermaster.com/Content/Script/Widgets.js",c.parentNode.insertBefore(a,c))})(document,"mni-widgets-script","script");
/*]]>*/
</script>
<style>
#mni-widgets-1664300152268 .mn-scroll-date {font-size: 115%;}
#mni-widgets-1664300152268 .mn-scroll-name {padding: 15px 3px 5px 0px;}
.cms-box-styling .mn-scroll-item.mn-has-enddate .mn-scroll-name {
padding-left: 0!important;
}
.ua-chrome .cms-box-styling .mn-scroll-item {
float: left;
}
.cms-box-styling {margin-bottom:30px;}
.cms-box-styling .mn-scroll-container {
height: auto;
}
.cms-box-styling .mn-scroll-slider {
column-count:5;
-moz-column-count: 5;
-webkit-column-count: 5;
}
.cms-box-styling .mn-scroll-item {
-moz-border-radius: 0;
-webkit-border-radius: 0;
background-clip: padding-box;
background-color: #66bd4a;
border-radius: 15px 0 0 0;
color: #ffffff !important;
position: relative;
min-height: 250px;
max-height:250px;
box-sizing: border-box;
vertical-align: top;
padding: 50px 20px;
width: 100%;
display: block;
-webkit-column-break-inside: avoid;
-moz-column-break-inside: avoid;
-o-column-break-inside: avoid;
-ms-column-break-inside: avoid;
column-break-inside: avoid;
page-break-inside: avoid;
break-inside: avoid;
margin: 0 0 15px;
}
.ua-ie .cms-box-styling .mn-scroll-item {
display: inline-block;
}
.ua-chrome .cms-box-styling .mn-scroll-item {
float: left;
}
@media (min-width: 768px) {
.cms-box-styling .mn-scroll-container {
height: auto;
}
}
.cms-box-styling .mn-scroll-teaser {
display:none;
}
.cms-box-styling .mn-scroll-name {
font-size: 150%;
padding-top: 20px;
}
.cms-box-styling .mn-scroll-item.mn-has-enddate .mn-scroll-name {
padding-left: 0;
}
.cms-box-styling .mn-scroll-name, .cms-box-styling .mn-scroll-location {
display: block;
padding: 10px 0;
position: relative;
text-align: center;
}
.cms-box-styling .mn-scroll-location:before {
content: "f041";
position: relative;
top: 1px;
display: inline-block;
font-family: 'FontAwesome';
font-style: normal;
font-weight: 400;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
padding-right: 3px;
}
.cms-box-styling .mn-scroll-link {
color: inherit;
text-decoration: none;
}
.cms-box-styling .mn-scroll-link:hover {
text-decoration: underline;
}
.cms-box-styling .mn-scroll-date {
font-size: 110%;
font-weight: 700;
left: 0;
position: absolute;
text-align: left;
top: 0;
width: 45%;
display: block;
height: 50px;
color: #ffffff;
/*width: 80px;*/
background-color: #8e0107;
padding-top: 10px;
padding-left: 0px;
}
.cms-box-styling .mn-scroll-item:hover {
opacity: 0.8;
}
.cms-box-styling .mn-is-long-date .mn-scroll-date {
width:auto;
min-width:80px;
height:auto;
min-height:50px;
padding:5px 10px 5px 20px;
display:flex;
flex-direction:column;
justify-content: center;
}
.cms-box-styling .mn-scroll-item:nth-child(odd) {
/*background-color: #013957;*/
}
@media (max-width: 992px) {
.cms-box-styling .mn-scroll-slider {
column-count:3;
-moz-column-count: 3;
-webkit-column-count: 3;
}
}
@media (max-width: 645px) {
.cms-box-styling .mn-scroll-slider {
column-count:1;
-moz-column-count: 1;
-webkit-column-count: 1;
}
}
.mn-scroll-slider .mn-scroll-item {
background-image: -webkit-gradient(linear,lefttop,leftbottom,from(#66bd4a),to(#48A00D));
background-image: -webkit-linear-gradient(top,#000000,##BEBEBE);
background-image: -moz-linear-gradient(top,#000000,##BEBEBE);
background-image: -ms-linear-gradient(top,#000000,##BEBEBE);
background-image: -o-linear-gradient(top,#000000,##BEBEBE);
background-image: linear-gradient(top,#000000,##BEBEBE);}
a.mn-scroll-name.mn-scroll-link {word-wrap: break-word !important;}
</style>
]]>
Hello guys, I’ve a problem with my site, I get this warning all the time:[27-Nov-2023 11:44:09 UTC] PHP Warning: Attempt to read property "post_type" on null in /home/c01prime23q4/public_html/wp-content/plugins/shortcoder/admin/tools.php on line 115
Do you have any idea why ?
I am using the latest version of WP.
After upgradine to TablePress Max in order to use Google Sheets to create / edit tables, our all important text-to-speech MP3 voice samples (understandably) stopped working, but your plugin resolved it!
Many thanks!
If you develop the ability to export / import shortcodes using a csv file, I would definitely upgrade!
One suggestion:
Please could you move “Display name” towards the top of the layout?
Many thanks again,
Sarah
Shortcoder is fantastic, thank you so much for creating it.
On a previous website, we used a combination of ACF, Static Blocks and Shortcoder to dynamically send people to a link based on the product they were viewing.
The button would run a shortcode, with the code in Shortcoder being:
/request-a-test-certificate?ProductSKU=$$custom_field:ProductSKU$$
This works fine on the previous site.
However, on this site, everything works except for the button. I initially thought there was a problem with ACF not grabbing the custom field, so I set the button text to be the ACF Field for the SKU and that works fine. It just doesn’t like the SKU=$$custom_field:SKU$$
Hovering over the button shows the link as normal, just with the $$custom_field:SKU$$ part missing.
I’ve tried deleting the field group and re-making it however the issue persists. Now I’m stumped.
Any ideas?
On the previous site we used WoodMart. This site we are using XStore.
edit: pics added.
Setting button text to SKU, and link to run the Shortcoder script.
This is how it displays on the front-end. It’s grabbing the SKU, but won’t append it to the link (SKU=). How come?!
]]>Hi! When creating shortcodes, you have 3 editor options, but WPBakery does not connect, Elementor too.
Can you make the plugin compatible so that when creating a shortcode we can do the page structure we need through WPBakery? Thanks
Hi guys,
How can I get a custom parameter from the url?
lets say https://url.com?param=test
I want to use the value from “param=”
Can I do it with Shortcoder?
]]>Could you please tell me, if I can import the Addquicktag shortcodes into Shortcoder?
thank you very much,
Peter
Hello there,
We’ve been using this plugin for a couple years now and recently site Administrators on a Multisite can no longer add shortcodes. When they click on Shortcodes from the navigation link it takes them to the Tags page. If you hover over the Shortcodes link you only see Tags, Settings and Upgrade to Pro. It is missing “All Shortcodes” and “Create Shortcode”.
What do we need to do in order to get this working again? Is there a filter we can alter or is this a bug that needs to be fixed?
]]>Can i create shortcode that can be used throughout all sites in a WP Multisite network? If not, maybe you can implement this features, like [blog_id=1 shortcode_id=8] to use the same shortcode content across multisites. thanks
]]>Hi there
For the PRO & free version, there are a few strings that aren’t in the textdomain of the plugin. This in the admin\edit.php file.
On line 92, 93, 102, 103, 112, 113, 114… These aren’t tagged with the text domain.
I changed them into this and I was able to translate them:
'yes' => __( 'Yes', 'shortcoder'),
'no' => __('No', 'shortcoder')
'all' => __('All devices', 'shortcoder'),
'desktop_only' => __('Desktop only', 'shortcoder'),
'mobile_only' => __('Mobile only', 'shortcoder')
The line numbers and fix are quite similar for the PRO version ??
]]>Hi! How can I use shortcode from another plugin or php code inside shortcoder shortcode? For example:
Shortcode1(in Shortcoder editor):
some text with %%param%%
[sideshortcode2 param=”%%param%%”]
Hello , can i make a shortcode with your plugin to show on specific pages the Subscription end date of our registered users ?
thanks
]]>Does this plugin have ability to insert reusable blocks (wp admin reusable blocks) into content using shortcode? We are looking to insert [resusable block post ID#] using the Ad Inserter plugin, but can’t figure out how to to that. Please advise, thanks!
]]>I have tested both ways – the url shows with [/sc] being used
where you see DTS15OFF is where the shortcode value is shown as expected, but if I choose to tweet this post then the value DTS15OFF is left blank – all other information in the post is as expected Below is the post
[sc name=”current_promo_code”] [/sc] more test required again [sc name=”current_promo_code”][/sc] #tradeideaspromo #tradeideasdiscount
Thanks
]]>Hi
I am getting following error, when I open Text editor for WPBakery Page builder
Notice: Trying to get property 'post_type' of non-object in /home/user1/public_html/wp-content/plugins/shortcoder/admin/tools.php on line 109
Notice: Trying to get property 'post_type' of non-object in /home/user1/public_html/wp-content/plugins/shortcoder/admin/tools.php on line 109
]]>