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

    (@otto42)

    WordPress.org Admin

    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.