Dynamic Header
-
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.