Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 512573

path to php code?

$
0
0

Replies: 0

I am trying to include php code with a php include
<?php include(‘inc/myscript.php’) ?>
but I am getting ‘failed to open stream: No such file or directory..’
the ‘inc’ folder is within my theme.
I’ve tried all sorts of paths but I can’t seem to get to inc/myscript.php
Do I need to include the theme path?
I’ve tried
<?php include bloginfo( ‘template_url’) + ‘/inc/myscript.php’ ?>

  • This topic was modified 25 minutes ago by  bikeman123.
  • This topic was modified 19 minutes ago by  bikeman123.

Viewing all articles
Browse latest Browse all 512573

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>