PHP include containing a posts title.
-
I want to add a php include to my template. I want it to include a file called the title of the post. I’ve tried several thing, but I quite honestly don’t have any programming abulity. The most progress I made is using the following code:
‘<?php
$startinclude = “<?php include(‘https://www.joshuatwood.com/includes/”;
$endinclude = “.php’); ?>”;
echo $startinclude;
$thumbs = the_title();
echo $endinclude;
?>’This returns to proper code for an include, but is not parsed by the server. Any ideas?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘PHP include containing a posts title.’ is closed to new replies.