Title: PHP and wordpress
Last modified: August 20, 2016

---

# PHP and wordpress

 *  [hotpress](https://wordpress.org/support/users/hotpress/)
 * (@hotpress)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/php-and-wordpress/)
 * HI, I have installed WP a while back, and haven’t gotten around to doing much
   with it functionality wise.
    I assume I can use php/mysql on the ‘pages’ and 
   not the ‘blogs’ portion of a wordpress site that is on a non WP host server, 
   correct? I assume I can display php results in a div block without consequence?
   Can I put AJAX code in the template? Ads too? If I want to hard code this, where,
   or what wp pages would I start with? index.php is using the php include() file,
   and the so on for the next reference. or is there more of a developer’s version
   of wp to install?

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

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 3 months ago](https://wordpress.org/support/topic/php-and-wordpress/#post-2619945)
 * You can use PHP in the templates (i.e. theme files) but not blog posts or pages
   without a plugin.
 * You can put anything you can code int them. They’re in wp-content/themes/FOLDER/
 *  Thread Starter [hotpress](https://wordpress.org/support/users/hotpress/)
 * (@hotpress)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/php-and-wordpress/#post-2619960)
 * Thanks for the info. I will look into the templates feature.
    I am trying to 
   decide if its easier to code(have most of it from another site anyway) my own
   comments/login/pagination on my site and being able to use the php where I want
   or try to use WP (which I am not proficient with its menus/features) and integrate
   that into my site but then may have roadblocks with WP since it really wants 
   the administrator to design the by a menu-driven approach.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 2 months ago](https://wordpress.org/support/topic/php-and-wordpress/#post-2619991)
 * I personally refrain from any case where I have to reinvent the wheel.
 * WP comes with Comments, login and pagination. Pulling in static pages, etc, is
   pretty easy, and menus just take a bit of using to get comfortable with.
 *  Thread Starter [hotpress](https://wordpress.org/support/users/hotpress/)
 * (@hotpress)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/php-and-wordpress/#post-2620010)
 * Yes, I do see the wisdom of your ways. be prepared for unwieldy questions to 
   come.

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

The topic ‘PHP and wordpress’ is closed to new replies.

## Tags

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

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 4 replies
 * 2 participants
 * Last reply from: [hotpress](https://wordpress.org/support/users/hotpress/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/php-and-wordpress/#post-2620010)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
