Title: PHP Syntax
Last modified: August 18, 2016

---

# PHP Syntax

 *  Resolved [arcater](https://wordpress.org/support/users/arcater/)
 * (@arcater)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/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)

 *  Thread Starter [arcater](https://wordpress.org/support/users/arcater/)
 * (@arcater)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/php-syntax/#post-619955)
 * I figured it out my self. That plugin was just way to confusing and after looking
   at get_post_meta I don’t even need it.

Viewing 1 replies (of 1 total)

The topic ‘PHP Syntax’ is closed to new replies.

## Tags

 * [custom fields](https://wordpress.org/support/topic-tag/custom-fields/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 1 reply
 * 1 participant
 * Last reply from: [arcater](https://wordpress.org/support/users/arcater/)
 * Last activity: [18 years, 8 months ago](https://wordpress.org/support/topic/php-syntax/#post-619955)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
