Title: Using PHP code from a plugin. (Optima Express IDX) within a wordpress page
Last modified: August 21, 2016

---

# Using PHP code from a plugin. (Optima Express IDX) within a wordpress page

 *  Resolved [jaykai](https://wordpress.org/support/users/jaykai/)
 * (@jaykai)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/using-php-code-from-a-plugin-optima-express-idx-within-a-wordpress-page/)
 * Hello! I’m working on a real estate website using wordpress. I’m pretty familiar
   with the ins and outs of wordpress. We are using a plugin that basically pulls
   from a database for real estate called (Optima Express IDX). This plugin generates“
   virtual pages” that cannot be found anywhere in wordpress, which display the 
   homes and various property searches.
 * My problem with this is that there is absolutely no way to customize these “virtual
   pages”, since they are generated by various PHP functions. Now I see that there
   are php pages that coordinate with the sections from the plugin. For example,
   one of the virtual pages is called “Map Search”. In the plugin folder I found
   a php page called mapsearch.php.
 * I thought that I could grab the code from one of the php pages, create a custom
   page template, named “template-mapsearch.php” and insert the code from the mapsearch.
   php file into the custom page, however when choosing this custom page from the
   template menu within the wordpress page editor, nothing seems to happen.
 * My best guess is that the code doesn’t know what to do since it is not within
   the plugin folder. Any thoughts on how to do this?
 * Any help would greatly be appreciated.

Viewing 1 replies (of 1 total)

 *  Thread Starter [jaykai](https://wordpress.org/support/users/jaykai/)
 * (@jaykai)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/using-php-code-from-a-plugin-optima-express-idx-within-a-wordpress-page/#post-4245508)
 * I figured out a work around. I basically created wordpress page templates for
   each optima express page, that contain a sidebar widget area for each optima 
   express page.. if that makes sense lol. Kinda quirky, but it works.

Viewing 1 replies (of 1 total)

The topic ‘Using PHP code from a plugin. (Optima Express IDX) within a wordpress
page’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 1 participant
 * Last reply from: [jaykai](https://wordpress.org/support/users/jaykai/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/using-php-code-from-a-plugin-optima-express-idx-within-a-wordpress-page/#post-4245508)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
