View Single Post
Old 08-01-2012, 10:18 AM  
The Dawg
Confirmed User
 
The Dawg's Avatar
 
Join Date: Apr 2002
Location: State Of Bliss
Posts: 2,438
Quote:
Originally Posted by alcstrategy View Post
Code:
<?php include('<?php echo get_post_meta($post->ID, 'galleries', true) ?>'); ?>
That code is incorrect in a few ways.

The immediate reason you get T_STRING error is because you have single quotes within single quotes.

Also the use of include is incorrect and unnecessary..

Just do <?php echo get_post_meta($post->ID, 'galleries', true); ?>
Thanks, I didnt notice the single quote issue.

If I use just the <?php echo get_post_meta($post->ID, 'galleries', true); ?>

it just prints out the location of the gallery /home/www/gallery1.php

What I'm trying to do is include a html page within the template.
The Dawg is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote