PHP Syntax
-
I know pretty much nothing with php…
I am using a plugin (Get Custom Field Values)which calls a function: c2c_get_custom
I want to include the other wordpress functions the_title & the_permalink but am not sure how.Here is my best stab at it, which does not work. I hope you can see what I am trying to to. I think my syntax is not correct. Not sure how to use variables within another function like this.
Thanks
<?php $mytitle=the_title(); $myLink=the_permalink(); echo c2c_get_custom('thumbnail', '<a href="$myLink"><img align="left" title="$mytitle" alt="$mytitle" border="2" src="http://mysite.com/img/small/', '"></a>', 'blank'); ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘PHP Syntax’ is closed to new replies.