Title: Embedded PHP into HTML&#8230;
Last modified: August 18, 2016

---

# Embedded PHP into HTML…

 *  [grizdog](https://wordpress.org/support/users/grizdog/)
 * (@grizdog)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/embedded-php-into-html/)
 * I’ve embedded the php of the blog index.php file directly into the html document
   that represents one of the pages that conforms to the rest of my site.
 * Currently, I only get the default message “Posted in. Not Found. Sorry, but you
   are looking for something that isn’t here.”
 * I’m assuming that the information isn’t being brought up because I don’t have
   the html document in the correct directory. However, I’ve tried it in every directory(
   such as the default theme directory and the blog directory) and it won’t even
   show up in those directories. It will only display what it currently displays
   in the root directory of my web site.
 * Any advise on how I might get this to work would be nice. I would like to be 
   able to use one of my html documents to do this, rather than building everything
   with css and php.
 * Thanks for your input.

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

 *  Thread Starter [grizdog](https://wordpress.org/support/users/grizdog/)
 * (@grizdog)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/embedded-php-into-html/#post-552091)
 * Does anyone have any ideas about this? Why doesn’t my html page find the posts
   I make and display them? I used all the code.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [18 years, 11 months ago](https://wordpress.org/support/topic/embedded-php-into-html/#post-552097)
 * You can’t put PHP code into an HTML document, unless your server is configured
   to process HTML files through a PHP processor (which it should not be doing).
 * Put the code into a PHP file instead. Or explain what you’re actually trying 
   to do so that somebody can tell you the actual correct way to do it.
 *  Thread Starter [grizdog](https://wordpress.org/support/users/grizdog/)
 * (@grizdog)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/embedded-php-into-html/#post-552133)
 * I am trying to generate my wordpress posts within one of my web site pages so
   that the information from the post will appear directly on one of the pages of
   the site that I am building.
 * The idea is to make is so that my client will be able to update their own site
   by inputing info into a post, via their wordpress interface, and that info will
   show up on a particular page on their site.
 * My site was not constructed by php and css, like wordpress. It uses HTML and 
   some css. So I’m looking for another way to integrate wordpress into my site 
   besides what is shown in the articles that I have seen.
 *  Thread Starter [grizdog](https://wordpress.org/support/users/grizdog/)
 * (@grizdog)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/embedded-php-into-html/#post-552134)
 * Some of the php code does appear to be working, even though I have placed it 
   into an HTML document. This is why I assumed that it would be possible to make
   the rest of the code work, even though it has been embedded into an HTML document.
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/embedded-php-into-html/#post-552135)
 * [http://codex.wordpress.org/Creating_a_Static_Front_Page#Using_Feedburner.3F](http://codex.wordpress.org/Creating_a_Static_Front_Page#Using_Feedburner.3F)
 * could be an option if you’re adamant about not using PHP to dynamically load 
   content (which is a HUGE impediment).
 *  [peiqinglong](https://wordpress.org/support/users/peiqinglong/)
 * (@peiqinglong)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/embedded-php-into-html/#post-552142)
 * You’re going to have **a lot** of problems in the long run. It’s like trying 
   to put a V12 engine into a Civic and make everything work correctly.
 * It’s more worthwhile and will save you a lot of headache later to just make the
   switch to PHP and CSS so you can take advantage of all the features available.
 *  Thread Starter [grizdog](https://wordpress.org/support/users/grizdog/)
 * (@grizdog)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/embedded-php-into-html/#post-552159)
 * I understand what you are saying. I’ll look into these option more for the long
   run. I’m just trying to find a simple solution to this one project, but I can
   see where using a different method will be more useful for future projects.

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

The topic ‘Embedded PHP into HTML…’ is closed to new replies.

## Tags

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

 * 7 replies
 * 4 participants
 * Last reply from: [grizdog](https://wordpress.org/support/users/grizdog/)
 * Last activity: [18 years, 11 months ago](https://wordpress.org/support/topic/embedded-php-into-html/#post-552159)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
