Possibility to use logical values. For example:
__________________
If the returned value (from another query) is greater than -1, show X
[sv slug=”logic” rule=”>-1″ true=”X” false=”Illegal value”][sv slug=”sc-db-value-by-id” table=”money_balance” column=”value” column-to-search=”name” key=”chelminski” key-format=”%d” message-not-found=”none”][/sv slug=”logic”]
__________________
If the returned value (from another query) equals “moderator” then show X
[sv slug=”logic” rule=”equal=moderator” true=”X” false=”Y”][sv slug=”sc-db-value-by-id” table=”perms_primary_group” column=”group” column-to-search=”name” key=”chelminski” key-format=”%s” message-not-found=”none”][/sv slug=”logic”]
__________________
If the returned value (from another query) starts with “goo” then show X
[sv slug=”logic” rule=”start=goo” true=”X” false=”Y”][another sample shortcode][/sv slug=”logic”]
__________________
If the returned value (from another query) endswith “gle” then show X
[sv slug=”logic” rule=”end=gle” true=”X” false=”Y”][another sample shortcode][/sv slug=”logic”]
Where in the future I would like it to be possible, for example, to insert another shortcode in addition to plain text instead of X.
If possible then logical values a bit like in Excel with support for shortcodes stuffed everywhere ???? E.g.
check if [shortcode]=”test” then show “text”, if not then:
check if [shortcode]=”admin” then show “text”, if not then:
check if [shortcode]=”moderator” then show “text”, if not then:
check if [shortcode]=”beta_tester” then show “text”, if not then:
check if [shortcode]=”user” then show “text”, if not then:
show “LOG IN!”
In the future, it can be expanded with many other elements, such as:
Would it be possible to implement something like this?
]]>Hi ??
Please add database like a data source for shortcodes.
]]>Can this plugin be mapped to user registration questions, then have the shortcode display a default image or icon within a page? For instance, a person’s astrological sign chosen during registration displaying as a default image for that sign wherever the shortcode is placed on a page? If a particular registration question is left blank, can the shortcode have a default not to displayed? If yes, can you give examples? I’m trying to build a custom profile page with a lot of visual material based off of registration prompts.
]]>Hello,
I bought a licence but I can paste the licence shortcode.
I have a javascript error :
Uncaught TypeError: Cannot read properties of null (reading ‘id’)
at c (index.min.js?ver=1682069727:1:217)
at HTMLDocument. (index.min.js?ver=1682069727:1:2580)
]]>
Hi there!
First, this plugin saves a lot of time for me. Thanks for sharing this work! I have only one wish at the moment. How can i disable this autointegrated link to admin.php? Everyone can see/click on it. As logged admin will be ok, but not for all visitors.
While using the Editor, this link ist not shown, only on the webpage itself, where the shortcode is integrated in. Please see the example link, the shortcode starts with the red banner, you can’t miss it.
Thanks for your reply!
]]>Hi, I guess we can output a snippet in a php template, but can’t find in documentation. Can you put here an example about how to do it?
Thanks
]]>Shortcode not working in menu items. Screenshot: https://imgur.com/vloy50k
]]>Hello! I am a huge fan of your plugin since it gives me the opportunity to create dynamic pages in our multisite network. Last week I stumbled upon the problem that the plugin is showing the site URL with the language code behind it (e.g.: domain.tld/en/)
As I want my URL to show without the language code, I created a custom shortcode by using Javascript to create the desired result. This method works well and I was able to incorporate it into a page using the plugin. However, when I thick the box to make the shortcode Global, it does not seem to do anything and it renders blank in all of my other sites across the network.
I have a premium subscription on the main domain of our multisite.
]]>Hello-
I am using the free version of this plugin before purchasing the upgrade. I am noticing that when I use the WYSIWYG editor, there are line breaks and paragraph breaks but when I view the actual page, the content is all jumbled into 1 paragraph.
The work around is to go into the source code tab and add the <p> and <br> tags but the issue happens again when I switch over to the visual mdoe.
Please help!
Amy
]]>Is is possible to update shortcode values via a REST API? I really want to be able to dynamically update snippets on my website from a different system.
]]>Tried to create a table in the page (Latest wordpress editor) and add a shortcode and seems like it doesnt work with tables – i see shortcode on website.
https://monosnap.com/file/JCiwb5vhtOEHezCHxhzqFHPFylGp11
i have a page with 10 buttons on it, different sections of the page is set up to call a url, see below, to display different 3d files.
currently, i have made 10 different pages build that have the following embedded as shortcode within each file uniquely.
here is the short code:
<iframe id=”vs_iframe” src=”https://www.viewstl.com/?embedded&url=https://mysite.com/wp-content/uploads/2020/07/stl1.stl” style=”border:0;margin:0;width:100%;height:100%;”></iframe>
notice the stl1.stl file name embedded in shortcode above
>>
what i would like to do is add your variable such as
[cgv stl-file] that is set to the file name… without having to go to your variable value set page… ideally, as part of the button call.
notice your global variable [cgv stl-file] embedded in following shortcode.
It works well… just have to figure out how to reset the value using buttons, drop downs, etc.
<iframe id=”vs_iframe” src=”https://www.viewstl.com/?embedded&url=https://mysite.com/wp-content/uploads/2020/07/%5Bcgv stl-file]” style=”border:0;margin:0;width:100%;height:100%;”></iframe>
the above url calls the site
https://www.viewstl.com to display 3d stl model files
its a cool site, check it out
Hi,
I recently discovered this plugin and it can surely save lots of time for me. It even candle handle other shortcodes within the shortcode. ??
But when trying it out I discovered the following:
1. The size of text differs from the rest on the page. My developer tells me it is because the <p> is not shown or working. If it was added everything would be fine.
2. Between sections <BR> is not working. But this maybe also depends on the <p> – issue.
I use the TinyMCE Advanced Editor which works perfectly for us. This is shown in the Shortcode Variables adminpage but seems to work differently for Shortcode Variables than in the rest of our site.
On the linked page you can see the difference in size and lack of brake compared to the original. The content of the shortcode is inserted between B?RJAN and SLUT to the bottom of the page.
Can you help? I would be very grateful.
]]>Hello,
I had to backup the database from our live site so I can work on it locally. I was able to do the import and I see the custom slugs, however, I can’t see them on the front end.
I double checked my php file and echo of the shortcode is there but it’s just blank. Any idea? I don’t want ot have to recreate all of them manually again.
Amy
]]>Hello, version 3.1 dont work with avada. I Reinstall the Plugin but still error:
w/htdocs/w01a52c9/finanzhaus-sedlmeier.de/wp-content/plugins/shortcode-variables/includes/cron.php): failed to open stream: No such file or directory in /www/htdocs/w01a52c9/finanzhaus-sedlmeier.de/wp-content/plugins/shortcode-variables/shortcode-variables.php on line 50
Warning: include_once(): Failed opening ‘/www/htdocs/w01a52c9/finanzhaus-sedlmeier.de/wp-content/plugins/shortcode-variables/includes/cron.php’ for inclusion (include_path=’.:/usr/share/php:..’) in /www/htdocs/w01a52c9/finanzhaus-sedlmeier.de/wp-content/plugins/shortcode-variables/shortcode-variables.php on line 50
Warning: Cannot modify header information – headers already sent by (output started at /www/htdocs/w01a52c9/finanzhaus-sedlmeier.de/wp-content/plugins/shortcode-variables/shortcode-variables.php:50) in /www/htdocs/w01a52c9/finanzhaus-sedlmeier.de/wp-includes/functions.php on line 6032
Warning: Cannot modify header information – headers already sent by (output started at /www/htdocs/w01a52c9/finanzhaus-sedlmeier.de/wp-content/plugins/shortcode-variables/shortcode-variables.php:50) in /www/htdocs/w01a52c9/finanzhaus-sedlmeier.de/wp-admin/includes/misc.php on line 1252
Warning: Cannot modify header information – headers already sent by (output started at /www/htdocs/w01a52c9/finanzhaus-sedlmeier.de/wp-content/plugins/shortcode-variables/shortcode-variables.php:50) in /www/htdocs/w01a52c9/finanzhaus-sedlmeier.de/wp-admin/admin-header.php on line 9
I hope it helps.
]]>Hey guys!
I was developing on localhost and using your plugin (great job btw!) without any issues.
Now, I was migrating the project to live and everytime I add a shortcode variable I get the error “There was an error saving your shortcode!” and am unable to add it/use it.
I already reinstalled the plug-in without success.
Any idea on what’s the issue?
Thanks
]]>Failed to load plugin: wpdialogs from url https://flipyourwheels.com/wp-includes/js/tinymce/plugins/wpdialogs/plugin.min.js
]]>Hi, after an usual upgrade of our plugin, i’ve got site crashed and typing every link, i received the same message:
Parse error: syntax error, unexpected …../home/…/wp-content/plugins/shortcode-variables/includes/class.presets.php on line 7
Thanks for your help, i hope!
L.
Hi, are there any plans to support multilanguage variables or has anyone experience using this plugin in multiple languages? Thanks!
J?rg
Is there a way to allow users with the Editor role to manage Shortcode Variables? Thanks.
]]>Hi,
Since the last update, I receive the following error
Warning: in_array() expects parameter 2 to be array, string … wp-content/plugins/shortcode-variables/includes/shortcode.user.php on line 58
I’ve the last version of WP and PHP 7.3 . I don’t use any cache system
]]>Hello,
When I try to activate your plugin, I have the following message :
L’extension n’a pas pu être activée, car elle a déclenché une erreur fatale.
Parse error: syntax error, unexpected ‘[‘ in XXX/wp-content/plugins/shortcode-variables/includes/class.presets.php on line 7
Do you know why ?
Thank you for your feedback ??
Best regards,
]]>Hello!
Me again! I have pitched to my boss in the future to create a wp multisite since 90% of the sites we have now are pretty much the same, just different language and little differences. I was wondering if this plugin would work in a multisite?
Thanks!
Amy
Hello, This is a repeat of a previous ticket submitted 2 years ago – https://www.ads-software.com/support/topic/shortcode-variables-not-appearing-on-page/
We had to restore our site from a previous backup 24 hours ago. Since then, the SV plugin has not been displaying on our pages. Not sure what you did last time to fix, but I can’t seem to find a solution. Any ideas? We use this plugin daily and love it’s efficiency.
Thank you,
Ylauts
Hello-
Can this be added into menu as well?
]]>Hello!
First off, just wanted to say that I love this plugin!!! I never knew this existed, thank you Google and thank you for developing this!
I do have a question. I created a shortcode for physical address and have noticed that even though it has a <br> or a <p> tag, when I view the page, it lumps it all into 1 line instead.
For example, I have it as
8350 Eastgate Road
Henderson, NV 89015
but it renders out as
8350 Eastgate Road Henderson, NV 89015
Do you know how I can fix this?
]]>Just wanted to let the dev know, and anyone else who experiences this. After the update a couple weeks ago, now if you click on “SHORTCODE VARIABLES” on the dashboard in WP, it spits out this error:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘sh_cd_user_defined_page’ not found or invalid function name in /home/mysite/public_html/wp-includes/class-wp-hook.php on line 286
There’s a workaround, however, if you just hover over the name in dashboard, then eventually a side popup shows and you can click on “YOUR SHORTCODES” and it takes you to where they are. So this isn’t really a bug, it’s just not defaulting to “YOUR SHORTCODES” when you initially click on “SHORTCODE VARIABLES.”
Thanks
E
Hi all,
how i can use the short code in an “image link” to generate a dynamic link with the current user’s username?
I need it to generate the QRCODE
Greetings, Is there a way to disable the shortcode disable feature? I noticed that whenever I copy/duplicate/restore a site all the shortcodes are disabled by default…
It doesn’t appear to happen right away. For example, I can restore a site, everything looks good, then I’ll come back later and all the shortcodes will be disabled.
]]>