Support » Plugin: PHP Code Widget » secret to includes

Viewing 1 replies (of 1 total)
  • Plugin Author Samuel Wood (Otto)


    That include isn’t specific as to the location of ‘pagetitles.php’. When you’re running in the widget context, you don’t know the relative location of where the executing file is. So use the ABSPATH constant to specify the location of your file relative to the WP Root directory.

Viewing 1 replies (of 1 total)
  • The topic ‘secret to includes’ is closed to new replies.