Title: Coding in WP?
Last modified: August 19, 2016

---

# Coding in WP?

 *  Resolved [bando1de](https://wordpress.org/support/users/bando1de/)
 * (@bando1de)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/coding-in-wp/)
 * Hi,
    I am new to WordPress and need to write PHP-code that queries a table. This
   table is located in the same database as the WP-tables. However, if I write the
   code using the editor in HTML-mode (this is going to be a page), the page preview
   shows the PHP-code instead of running it.
 * The code itself is tested and works on another webpage I made up.
    Doesn’t WP
   recognize the “<? PHP ?>”-tag or what am I missing?
 * Any help would be appreciated,
    Erhard

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

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/coding-in-wp/#post-986812)
 * you will need this
    [http://wordpress.org/extend/plugins/exec-php/](http://wordpress.org/extend/plugins/exec-php/)
 *  Thread Starter [bando1de](https://wordpress.org/support/users/bando1de/)
 * (@bando1de)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/coding-in-wp/#post-986909)
 * Thanks, that helped!

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

The topic ‘Coding in WP?’ is closed to new replies.

## Tags

 * [Coding](https://wordpress.org/support/topic-tag/coding/)
 * [database](https://wordpress.org/support/topic-tag/database/)
 * [table](https://wordpress.org/support/topic-tag/table/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [bando1de](https://wordpress.org/support/users/bando1de/)
 * Last activity: [17 years, 3 months ago](https://wordpress.org/support/topic/coding-in-wp/#post-986909)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
