structure theme with page
-
Can someone help me structure theme to page, the fim_photos.php use its own default template structure. i need to tweak that default structure to match the structure of the WordPress theme i am gonna use, not sure how to do this.
page https://www.koddinn.com
gallery page, trying to fix https://www.koddinn.com/myndirhere is the fim_photos.php
<?php define('FIM', true); ?> <?php include("../../../wp-blog-header.php"); ?> <?php require_once("functions/fim_functions.php"); ?> <?php get_header(); ?> <div id="content" class="narrowcolumn"> <div class="entry"> <?php echo fim_get_the_content(); ?> </div> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
i need to let it look like the structure of the theme i am gonna use. page.php
<?php get_header(); ?> <div class="main-narrow"> <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <div class="entry"> <?php the_content(); ?> <?php link_pages('<strong>Pages:</strong> ', ' ', 'number'); ?> <?php edit_post_link('Edit', '', ' '); ?> <!-- <?php trackback_rdf(); ?> --> </div> <div class="comments-template"> <?php comments_template(); ?> </div> </div> <?php endwhile; ?> <?php else : ?> <div class="post"> <h2><?php _e('404 Error: Not Found'); ?></h2> </div> <?php endif; ?> </div> <?php get_footer(); ?>
- The topic ‘structure theme with page’ is closed to new replies.