Title: How to upload own php code
Last modified: August 20, 2016

---

# How to upload own php code

 *  Resolved [williepabon](https://wordpress.org/support/users/williepabon/)
 * (@williepabon)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/how-to-upload-own-php-code/)
 * If I have a specific html code (front end) and php code (back end) that I want
   to use in my Theme, how do I upload it? Thanks for any help.

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

 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/how-to-upload-own-php-code/#post-3418811)
 * There’s several ways to do it.
 * In the admin area I’d suggest either adding it to a current menu item uisng something
   like add_admin_page() or add_options_page() (or any of the other options there).
   That’s the easiest way to get the admin working.
 * In the front-end you can either add it directly to your template files, or set
   up your own functions to display whatever it is, or you can set up widgets and/
   or shortcdoes to display the data.
 *  Thread Starter [williepabon](https://wordpress.org/support/users/williepabon/)
 * (@williepabon)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/how-to-upload-own-php-code/#post-3418858)
 * Catacaustic:
 * Thanks for the reply. I’m newbie doing these things, and not sure how to proceed.
   Was thinking that the end goal of uploading the php code is to have it like another
   script that shows when I do Appearance > Editor on the WordPress Dashboard. Don’t
   know if this is possible. Think that for the html code, I can create a page for
   it, right? Thanks for your patience.
    wp
 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/how-to-upload-own-php-code/#post-3418860)
 * That is possible. You’ll need to build that into your theme or create a new plugin
   for it.
 * Look at the [add_menu_page()](http://codex.wordpress.org/Function_Reference/add_menu_page)
   function and that will give you the basics of how to do it.
 *  Thread Starter [williepabon](https://wordpress.org/support/users/williepabon/)
 * (@williepabon)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/how-to-upload-own-php-code/#post-3418862)
 * Catacaustic:
 * Thanks again. I know now what it is needed to be done, and find that this is 
   beyond my knowledge of WordPress and coding (php or html). But, thanks anyway
   for your kind help. Will continue to look if somebody already did what I need
   to do.
    wp

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

The topic ‘How to upload own php code’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [williepabon](https://wordpress.org/support/users/williepabon/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/how-to-upload-own-php-code/#post-3418862)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
