Title: Syntax for Custom PHP field
Last modified: August 20, 2016

---

# Syntax for Custom PHP field

 *  [21johnny](https://wordpress.org/support/users/21johnny/)
 * (@21johnny)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/syntax-for-custom-php-field/)
 * Trying to pass a url to curl within the Custom PHP field and keep getting errors
   on execution. Not sure how to interpret the field instructions “You must put 
   your >?php tag to initiate PHP where you want it used”. I do see your script 
   runs an eval function against the code snippet but unsure what php tags should
   surround the code. Could you provide an example? Here is the kind of thing I 
   have been trying:
 * `<?php curl "http://example.com/wp-content/plugins/plugin/script.php"; ?>`

Viewing 1 replies (of 1 total)

 *  [GrayHunter](https://wordpress.org/support/users/grayhunter/)
 * (@grayhunter)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/syntax-for-custom-php-field/#post-2248413)
 * Up

Viewing 1 replies (of 1 total)

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

 * 1 reply
 * 2 participants
 * Last reply from: [GrayHunter](https://wordpress.org/support/users/grayhunter/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/syntax-for-custom-php-field/#post-2248413)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
