Title: Executing php code from a Page
Last modified: August 18, 2016

---

# Executing php code from a Page

 *  [staren](https://wordpress.org/support/users/staren/)
 * (@staren)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/executing-php-code-from-a-page/)
 * Ok why doesn’t this work? I am using WordPress 2.1 and all I want to do is execute
   this code: displayAmazonWishlist(”wishlist_id”); from a Page. It’s the code needed
   to get wp-amazon-wishlist working. Now I’ve tried both the new version of RunPHP
   and Exec-PHP. Neither will even execute the code and give an error. I don’t want
   to hard code the line because I need to have multiple pages with a different 
   wishlist. What could be going wrong?

Viewing 1 replies (of 1 total)

 *  [gagnews](https://wordpress.org/support/users/gagnews/)
 * (@gagnews)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/executing-php-code-from-a-page/#post-517384)
 * Im having the same problem. Trying to reference the recent posts via a new page
   that Im creating in WP. doesnt work.

Viewing 1 replies (of 1 total)

The topic ‘Executing php code from a Page’ is closed to new replies.

## Tags

 * [amazon](https://wordpress.org/support/topic-tag/amazon/)

 * 1 reply
 * 2 participants
 * Last reply from: [gagnews](https://wordpress.org/support/users/gagnews/)
 * Last activity: [18 years, 8 months ago](https://wordpress.org/support/topic/executing-php-code-from-a-page/#post-517384)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
