Jamie Fraser
Forum Replies Created
-
Forum: Plugins
In reply to: [PHP Code for posts] Can not add new snippetsHi Jacob,
I have fixed the issue causing this, look for version 2.2.2
Thanks!
Forum: Plugins
In reply to: [PHP Code for posts] Fatal Error after latest updateHi all,
the issue lies with the use of Short-Array syntax not being available in your version of PHP (I force-of-habit on my part).
Ive updated it to not use any SAS in the latest changes
Forum: Plugins
In reply to: [PHP Code for posts] Way to detect shortcodes, using WordPress core functionsHi Sybre,
If you look at
Classes/PhpCodeForPosts.phpyou can see that on lines 31 and 33, the shortcodes are already registering using theadd_shortcodemethod, which should be adding them to the global variable already.— J
yep, there is an error in my syntax above
it should readglobal $PHPPC; $myvar = $PHPPC->_vars["myvaridentifer"];jhannon – the vars can only pass data around snippets on a single page load
Forum: Plugins
In reply to: [PHP Code for posts] The wp-mail function strangely worksIt could be that the code is being ran more than once? how many times are you using it within the post?
Forum: Plugins
In reply to: [PHP Code for posts] fatal error on installHi Chris
It looks like your server’s session settings are also not configured correctly and / or your permissions need changing.
Thanks
Forum: Plugins
In reply to: [PHP Code for posts] fatal error on installHi Brian
The plugin uses session_start to pass status messages between options pages.
It looks like session isn’t configured properly on your server.
Check your session configuration and try again.
Thanks
Forum: Plugins
In reply to: [PHP Code for posts] can I process POST data?It can indeed, simply access POST as you would in your regular ol’ PHP script
Forum: Plugins
In reply to: [PHP Code for posts] Instructions where?Hi,
In my experience WordPress likes to break code placed between tags by adding random characters and breaks.
This plugin uses saved snippets to skip this, you place your code into a snippet on the admin page, which you can then embed onto posts and pages using
[php snippet=x]This is an easier solution than having it directly in the post, and allows the use of the same code in multiple places using just one editing screen.
You can pass parameters to each shortcode using
paramon the shortcode. Which gets expanded into a $_parameters array variable for your code to use.I hope this clears things up for you!
Hi Laurent,
My apologies, it appears that when I was optimising code I disabled the parameters.
I have re-enabled them and the issue is fixed in 2.1.2 (on its way up now)
Cheers
Forum: Plugins
In reply to: [PHP Code for posts] Plugin stopped working after updateNever Mind,
I found the issue with 2.1.0 and patched it for 2.1.1, coming very shortly
Forum: Plugins
In reply to: [PHP Code for posts] Plugin stopped working after updateHi!
What part of the plugin stopped working after the upgrade?
Forum: Plugins
In reply to: [PHP Code for posts] php 7 and PHP Code for postsHi Suay,
What errors are being shown in your error logs?
Forum: Plugins
In reply to: [PHP Code for posts] php require_once() not locating the php file.Hi Kevin,
Can you provide a link to your code snippet that you are using (or paste it here)?
Thanks
Forum: Plugins
In reply to: [PHP Code for posts] Snippets not showing after WP updateHi wggrace,
Have you tried resaving the plugin’s options after the update?
When you say they are not working, could you explain what is happening please?
Thanks