Running entire script within a table
-
Hi,
Is there a way to run the entire script inside a table in a PHP page?
I have tried this by adding:
<?php
require(‘./wordpress/wp-blog-header.php’);
?>at the top of a php page and:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_date(”,'<h2>’,'</h2>’); ?>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<h3 class=”storytitle”>” rel=”bookmark”><?php the_title(); ?></h3>
<div class=”meta”><?php _e(“Filed under:”); ?> <?php the_category(‘,’) ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(__(‘Edit This’)); ?></div><div class=”storycontent”>
<?php the_content(__(‘(more…)’)); ?>
</div><div class=”feedback”>
<?php wp_link_pages(); ?>
<?php comments_popup_link(__(‘Comments (0)’), __(‘Comments (1)’), __(‘Comments (%)’)); ?>
</div></div>
<?php comments_template(); // Get wp-comments.php template ?>
<?php endwhile; else: ?>
<?php _e(‘Sorry, no posts matched your criteria.’); ?>
<?php endif; ?>within the table. While this looks ok (except that the right hand nav is missing), clicking any links on the page reverts to the script’s original layout.
Example: https://mpk.net.au/emag.php
Alternatinely, can one add a header and footer (like most other scripts) to integrate WordPress into one’s own layout?
Thanks
- The topic ‘Running entire script within a table’ is closed to new replies.