Support » Plugins and Hacks » PHP Code Widget » [Resolved] secret to includes

[Resolved] secret to includes

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


    WordPress.org Tech Dude

    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 ‘[Resolved] secret to includes’ is closed to new replies.
Skip to toolbar