Title: Dynamic Header
Last modified: August 21, 2016

---

# Dynamic Header

 *  [sivaprasad.bevara](https://wordpress.org/support/users/sivaprasadbevara/)
 * (@sivaprasadbevara)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/dynamic-header-5/)
 * Hi,
 * We are creating HTML pages dynamically for Word press. In this we have issue 
   including the header (dynamic) into that. We are creating the press as below.
 * I have create the template as below.
 *     ```
       <?php
       /**
        Template Name: Detail-Template
        */
   
        get_header("Detail"); ?>
   
       			<?php while ( have_posts() ) : the_post(); ?>
       				<?php get_template_part( 'content', 'page' ); ?>
       			<?php endwhile; // end of the loop. ?>
   
       <?php get_footer(); ?>
       ```
   
 * We are directly inserting the data in to the mysql from the code (C# app) in 
   to the following tables “wp_posts” and “wp_postmeta”. In this process I have 
   created almost 10000 pages. I need different header for all these pages. So I
   want to use the similar technique to create header also (data insertion to database).
   But I am not able to do that.
 * Following is the header.
 *     ```
       <?php
       /**
        Template Name: Detail-Template
        */
   
        get_header("Detail"); ?>
   
       			<?php while ( have_posts() ) : the_post(); ?>
       				<?php get_template_part( 'content', 'page' ); ?>
       			<?php endwhile; // end of the loop. ?>
   
       <?php get_footer(); ?>
       ```
   
 * Please help.
 * Regards,
    SivaPrasad.B

The topic ‘Dynamic Header’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [sivaprasad.bevara](https://wordpress.org/support/users/sivaprasadbevara/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/dynamic-header-5/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
