Title: Link to custom PHP script
Last modified: August 20, 2016

---

# Link to custom PHP script

 *  [dmdj](https://wordpress.org/support/users/dmdj/)
 * (@dmdj)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/link-to-custom-php-script/)
 * I want to link to a dynamic PHP script within my WordPress website that cannot
   be seen or edited in the CMS that can use all the WP functions and the same theme
 * Is this possible?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/link-to-custom-php-script/#post-2300770)
 * That should be possible, yes. I’d suggest adding it to a [custom page template](http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates)
   in your theme.
 *  Thread Starter [dmdj](https://wordpress.org/support/users/dmdj/)
 * (@dmdj)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/link-to-custom-php-script/#post-2300815)
 * Sorry, I’m still unclear
 * I would like to create a PHP script (example.php) which will fetch data from 
   a database. I do not want it to be shown on the wp-admin as a Page.
 * I do not know where to place this script within the WordPress file structure.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/link-to-custom-php-script/#post-2300822)
 * > I do not want it to be shown on the wp-admin as a Page.
 * It won’t be. The (blank) Page acts as a placeholder – or vehicle – for the script.
 *  Thread Starter [dmdj](https://wordpress.org/support/users/dmdj/)
 * (@dmdj)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/link-to-custom-php-script/#post-2300913)
 * Okay, so I develop the PHP script with everything I want it to do and place it
   in wp-content. I give it a template name.
 * Then, in wp-admin, I create a blank page with the template created in the PHP
   script?
 * This I understand, but it leaves the problem that users of the site will be able
   to remove the page as it appears in the list of pages on the dashboard, this 
   is what I am trying to avoid.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Link to custom PHP script’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [dmdj](https://wordpress.org/support/users/dmdj/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/link-to-custom-php-script/#post-2300913)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
