View Single Post
Old 08-01-2012, 09:41 AM  
The Dawg
Confirmed User
 
The Dawg's Avatar
 
Join Date: Apr 2002
Location: State Of Bliss
Posts: 2,438
Wordpress: unexpected T_STRING error

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?

The Dawg is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote