View Single Post
Old 08-01-2012, 12:52 PM  
alcstrategy
Confirmed User
 
Industry Role:
Join Date: May 2012
Posts: 124
Quote:
Originally Posted by The Dawg View Post
I have a custom field named galleries that is producing the "Parse error: syntax error, unexpected T_STRING" error.

galleries field has the server location of a gallery ( /home/www/gallery1.php )


If I hardcode the link in the template it works
Code:
<?php include('/home/www/gallery1.php'); ?>
But...

Code:
<?php include('<?php echo get_post_meta($post->ID, 'galleries', true) ?>'); ?>
^^ ERROR ^^

Whats wrong with this line?

sorry i totally overlooked what you were actually doing and just focused on the code i saw, my apologies
alcstrategy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote