potato5
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to import and use a JSON feed?I think you need to proceed like mentioned here http://wordpress.stackexchange.com/questions/102277/import-json-feed-to-wordpress under “Answer 1”.
After step 1, throw $slices into a
echo "<pre>";print_r( $slices );echo "</pre>";. How does the output look like?Forum: Fixing WordPress
In reply to: Set a simple cookie in functions.phpRan a quick test with your code..
Works:
setcookie('SESSIONKEY', 'W8FREEBTG');Doesnt work:
setcookie('SESSIONKEY001', 'W8FREEBTG', 3600);Works:
setcookie('SESSIONKEY002', 'W8FREEBTG', time() + 3600);The 3rd parameter “expiration date” is a Unix time stamp. Unix time started 1.1.1970. So 3600 seconds sets your cookie expiry date on the January 1st 1970. Means: for PHP it is already expired.
http://msdn.microsoft.com/en-us/library/vstudio/ms178195%28v=vs.100%29.aspx –> “To assign a past expiration date on a cookie”
Forum: Fixing WordPress
In reply to: Visual editor of posts vanishedCheck this:
1) Go to “Posts > Add new”
2) Now switch to “View source” view of your browser
(http://www.computerhope.com/issues/ch000746.htm)
3) Scroll all the way down. Do you see an ending </html> tag?If not then most likely a PHP error has occurred somewhere and interrupted the “code flow”. Since the scripts for calling the TinyMCE editor are located in the footer of WordPress it would not reach this point anymore. Result: no TinyMCE editor controls.
Then you need to check for hidden PHP errors.Forum: Everything else WordPress
In reply to: Point-of-Sale (POS) – better to publish as theme or plugin?Works nicely -> https://tommcfarlin.com/page-template-in-plugin/
Forum: Everything else WordPress
In reply to: Point-of-Sale (POS) – better to publish as theme or plugin?Right, have to try that out.
Only problem I could imagine might be missing file permissions, but there should be way around.Do you know by any chance a plugin listed at WP.org which does it like this?
Forum: Everything else WordPress
In reply to: Point-of-Sale (POS) – better to publish as theme or plugin?Thanks Rod!
So if I understand it correctly the plugin would have a subfolder like this..
./wp-content/plugin/[plugin-name]/[theme – name]
|
..which is then copied into..
|
-> ./wp-content/themes/[theme – name]Or would tell the user to move the theme files manually into “Themes”?