Johan Steen
Forum Replies Created
-
Hi,
It should work fine on 4.3.x.
Cheers,
JohanHi,
Yes, that should be possible. When you want to execute a shortcode from PHP, you usually have to wrap the content with the do_shortcode() function in WordPress. Post Snippets perform a do_shortcode() on shortcodes created just before output, so you should be able to have PHP shortcodes with shortcodes inside them without having to add a do_shortcode() in your snippet.
Cheers,
JohanHi,
You’re actually passing the string [download_url] into the dropdownitem shortcode. WordPress is aware that [download_url] is a shortcode and shall be resolved to whatever it provides when it outputs the content. Other shortcodes are per default not aware that they get a shortcode, but treats it as any other string. So in this case dropdownitem does not know that [download_url] is actually a shortcode.
But shortcodes can be made aware of other shortcodes, but they need to add support for executing shortcodes within the shortcode.
So in the case of Post Snippets, any shortcode you create that contains a shortcode in the snippet, will execute that nested shortcode too. But in your case, you need the shortcode [dropdownitem] to execute a shortcode on its link attribute, so for that to work, the developer of [dropdownitem] needs to add support for passing in a shortcode there.
Hope this helps/explains.
Cheers,
JohanHi,
The plugin doesn’t have it’s own styling for the jQuery dialog, but uses WordPress’ default jQuery UI styling (ie, wp-jquery-ui-dialog). What dialog box does it come up behind?
That should be fine. Must be a collision with something, but impossible to say with what without further information.
What version of WordPress are you running? And also, do you know which PHP version you have?
Have you verified that the update max inputs have taken effect? It does sounds like you have run into that limit. If you could delete one snippet. save. And then add it back, and see if it saves, then you’d know you still are at the limit.
The next bigger update of this plugin, will change how I store the snippets, and will no longer be affected by this limit. No ETA when I’ll be done though.
Hi,
That does not sound normal. Especially if you still see the snippets in the database, that should not happen. Any further information you might be able to provide will be helpful to understand why this happens to you.
Cheers,
JohanHi,
You are using
{annual_fee}, if you instead use[annual_fee]it should work as expected.Cheers,
JohanFran, you can use variables with shortcodes too.
Hi,
After the snippet has been posted to the editor, it is out of the plugin’s control. What you are seeing here is probably a native feature of WordPress, that users with the Editor role are not allowed to freely add custom HTML, JS etc to posts.
Ie, see here: http://codex.wordpress.org/Roles_and_Capabilities#Capability_vs._Role_Table
So when the editor goes to a post, and saves it, even if it were ok previously when an admin saved it, the editor resaving it will then remove the code.
That’s the nature of the editor role in WP. You can verify if it relates to the plugin or not, by pasting the code manually into a post, as an editor, and save it, and see if it stays or gets removed.
What you could do, is to use it as a shortcode instead, that should circumvent the filtering for editors, as no code is actually placed in the posts when using it as a shortcode.
Hi,
I haven’t had time to check it with WP4 yet, I am a bit swamped with work right now. Though I will check it very soon, and add some small minor requests at the same time. So hang in there a bit longer, and I’ll post an update, and bump the tested up til to 4.0 at the same time.
Cheers,
JohanHi Ric,
Do you have a large collection of Snippets?
Then it might be the same issue as divehappy had here: http://wordpress.org/support/topic/snippets-not-saving?replies=5Check message number 4, adjusting the php.ini file will in that case fix it.
If you do not have a large collection of snippets, then feel free to send me an export of your snippets, if you are able to, and I will take a look.
Cheers,
JohanForum: Plugins
In reply to: [Donations via PayPal] Notice: Undefined index: new_tabHey,
Thanks for pointing that out. I’ve now adjusted the plugin to not throw a notice when using WordPress in debug mode. The just released 1.8.4 includes this fix.
Cheers,
Johan