• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Search results

  1. D

    RESOLVED Wordpress Banner not showing for pages with PHP code snippets

    I was only aware of that usage in functions. I'll try it in the main program. Thank you for your help. Dave.
  2. D

    RESOLVED Wordpress Banner not showing for pages with PHP code snippets

    I have found the problem. It happens if the snippet is stopped as a result of the die() or exit() functions. It did not seem to be related to the errors resulting from the deprecated PHP create_function(). I can see how this could create a problem since it's actually causing Wordpress to die...
  3. D

    RESOLVED Wordpress Banner not showing for pages with PHP code snippets

    After enabling DEBUG I found out that the errors was not in my Woody Snippet code, but actually in a plugin called PHP-Code-Widget caused by the deprecated PHP function create_function(). After fixing that, I found out that this error was also in the Slider Revolution plugin. I have a feeling...
  4. D

    RESOLVED Wordpress Banner not showing for pages with PHP code snippets

    Hi Temyk, Thanks for letting me know about DEBUG. I can't believe that after all these years I never felt I needed it and never knew about it. I turned on DEBUG and got this message. Deprecated: Function create_function() is deprecated in...
  5. D

    RESOLVED Wordpress Banner not showing for pages with PHP code snippets

    And I also noticed that the page right sidebar re-appeared after commenting out the shortcodes.
  6. D

    RESOLVED Wordpress Banner not showing for pages with PHP code snippets

    Yes. I commented out the short codes, see attached image, and the WP Banner/Header re-appeared.
  7. D

    RESOLVED Wordpress Banner not showing for pages with PHP code snippets

    Sorry, it's that black bar that shows up across the top of the WordPress screen when you're logged in.
  8. D

    RESOLVED Wordpress Banner not showing for pages with PHP code snippets

    When I load pages where there is a snippet short code specified, the Wordpress banner doesn't show. If I select a different page, the banner appears. I also have a bunch of other problems that seem to be related to the snippets but this is the only one directly related.
  9. D

    RESOLVED Datepicker for PHP Snippet

    Problem solved! While looking at some other examples of datepickers I noticed a different way of programming the $( function line in JS. I tried the different way and it worked. I hope this fixes it permanently. Thanks, Dave.
  10. D

    RESOLVED Datepicker for PHP Snippet

    Well it worked ... and then it stopped working. So I copied the jQuery code that was working but stopped working into a very simple new page with a FORM that has 2 date fields so that I could work with it, but I still can't get it to work. I have used basically the same JS code in a...
  11. D

    RESOLVED Datepicker for PHP Snippet

    Thank you Temyk, It was a little tricky since I had to add the wp_enqueue calls. Here's the final code which works, and was included at the beginning of my Woody Snippet Script. Any suggestions to improve on this. Dave. wp_enqueue_script('jquery-ui-datepicker')...
  12. D

    RESOLVED Datepicker for PHP Snippet

    I'm looking for an alternative to the HTML5 datepicker for my PHP code generated FORM. It mostly works but is not great. Is there an alternative which will work in my PHP Snippet which is is either internal to WordPress or included in jQuery or as another plugin. Thanks, Dave W.