Viewing 3 replies - 1 through 3 (of 3 total)
  • If you want to use WordPress functions and functionality you need to load WordPress. You can see a couple of methods for doing that here.

    But I feel I have to ask why you need to do this. If you want to integrate with a WordPress install the normal way to do that would be with a theme or plugin.

    Thread Starter garg4m3l

    (@garg4m3l)

    @jakept

    Thanks! I did more searching and I think now i need to create custom wordpress post/page templates by uploading files to child or parent theme directory so I am gonna try it now.

    This way i keep post/page default structure (header etc) design and so on instead of creating my own files, in fact i wanted to include them anyway so ill try to do it this way (via inserting files to theme directory)

    I suggest you make a child theme and put the files there, so that if you update your theme, you won’t lose your changes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to access wordpress variables,functions and database in my own php files?’ is closed to new replies.