Title: Implementing WordPress into a template
Last modified: August 18, 2016

---

# Implementing WordPress into a template

 *  Resolved [abigsmurf](https://wordpress.org/support/users/abigsmurf/)
 * (@abigsmurf)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/implementing-wordpress-into-a-template/)
 * I’m currently trying to implement WordPress into the site [http://www.ukanime.com](http://www.ukanime.com)
   which uses a php include based template for navigation. Due to the way I’ve created
   my site in the past, I really need to keep the existing nav bars (which I intend
   to supplement with wordpress features).
 * Unfortunately I’ve hit a snag in that after the WordPress code is displayed, 
   it ceases to display anymore code. This includes my vital Right navigation bar
   unfortunately. You can see what it looks like here : [http://www.ukanime.com/template2.php?page=bindex.php](http://www.ukanime.com/template2.php?page=bindex.php).
   I’m not sure if it’s a CSS issue (I’m not that experienced with it as I made 
   a PHP based template to avoid the need to use it) but does anyone have any idea
   why my code’s being truncated?

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

 *  [Phunky](https://wordpress.org/support/users/phunky/)
 * (@phunky)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/implementing-wordpress-into-a-template/#post-334439)
 * ….
 * Make you site a wordpress template, job done.
 *  Thread Starter [abigsmurf](https://wordpress.org/support/users/abigsmurf/)
 * (@abigsmurf)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/implementing-wordpress-into-a-template/#post-334446)
 * I’m kinda trying to do that. Implementing wordpress into my existing template.
   I’ve something like 375 content pages, some stored in a database, some in html(
   as well as some custom php elements). I do intend to integrate everything together
   but that’s months of work for me, a portion of which may involve downtime for
   the site.
 * At the moment I want to get the basic functionality integrated with my existing
   template and gradually implement the site’s content a bit at a time.
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/implementing-wordpress-into-a-template/#post-334452)
 * I think Phunky meant that you should convert your design into a WP theme. I’m
   not sure that would work for you.
 * How are you including the WordPress content? Also, does anything on your right
   nav bar perform any db queries of its own?
 *  Thread Starter [abigsmurf](https://wordpress.org/support/users/abigsmurf/)
 * (@abigsmurf)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/implementing-wordpress-into-a-template/#post-334455)
 * The template is basically a layout consisting of a selection of tables. The left
   navbar, wordpress and the right bar are in a table of their own with 3 columns.
   The left bar is hard coded into the template and wordpress and the right bar 
   are both php includes. The right bar is a html with no database or php calls.
 * The thing is it doesn’t even have display the code for the final div where the
   navbar would go. The code just stops once index.php from the theme has loaded.
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/implementing-wordpress-into-a-template/#post-334458)
 * “_The code just stops once index.php from the theme has loaded._“
 * So you’re including index.php? You’d be better off including wp-blog-header.php
   and then incorporating the various WP components you need, to avoid the theme
   override that is occuring. See this Codex doc for more:
 * [http://codex.wordpress.org/Creating_a_Static_Front_Page#Integrating_WordPress](http://codex.wordpress.org/Creating_a_Static_Front_Page#Integrating_WordPress)
 *  Thread Starter [abigsmurf](https://wordpress.org/support/users/abigsmurf/)
 * (@abigsmurf)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/implementing-wordpress-into-a-template/#post-334476)
 * nope even creating a static front page like that stops the right bar from displaying
   it seems. It gets the same issue. Any idea why the code seems to be stopping 
   anything else from being displayed once it finishes? It’s definately not a CSS
   issue as I’ve tried it with disabled themes.
 * *edit*
 * doing some work it seems to be the wordpress index that’s causing the issues.
   I’ll see if I can sort it out
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/implementing-wordpress-into-a-template/#post-334480)
 * Do not include the _whole_ WP index file into your site – it creates errors (
   like having two `<head>` sections, two `<body>` sections etc.)
    You may want 
   to take a look at this tutorial to get an idea how to do it: [http://www.transycan.net/blogtest/2005/07/05/integrate/](http://www.transycan.net/blogtest/2005/07/05/integrate/)
 * You could also simply use [The_Loop](http://codex.wordpress.org/The_Loop) in 
   your site.
 *  Thread Starter [abigsmurf](https://wordpress.org/support/users/abigsmurf/)
 * (@abigsmurf)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/implementing-wordpress-into-a-template/#post-334600)
 * Thanks, that link was really handy. It’s all finished and (seems to be) bug free
   now.

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

The topic ‘Implementing WordPress into a template’ is closed to new replies.

 * 8 replies
 * 4 participants
 * Last reply from: [abigsmurf](https://wordpress.org/support/users/abigsmurf/)
 * Last activity: [20 years, 3 months ago](https://wordpress.org/support/topic/implementing-wordpress-into-a-template/#post-334600)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
