Not sure if php has anything to do with it. please browse http://iamwhitebox.com/staging/arkitek/#press
I have a default tab on my page that displays 2 blog posts sorted by date. but it does not appear when I click on it in the menu, I turned it on in two separate places, is there an easier way to achieve this? I know that there is
<?php
define('WP_USE_THEMES', false);
require('/home/whiteb0x/iamwhitebox.com/staging/arkitek/blog/wp-blog-header.php');
query_posts('cat=3&showposts=2');
?>
<article class="blog-feed">
<?php while (have_posts()): the_post(); ?>
<div class="blog-title">
<div class="blog-date">
<?php the_time('m.j.Y'); ?>
</div>
<strong><a class="blog-link" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" alt="<?php the_title(); ?>">
<?php the_title(); ?>
</a></strong>
</div>
<a class="blog-link" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" alt="<?php the_title(); ?>">
<div class="blog-thumbnail"><?php the_post_thumbnail( array(80,80) ); ?></div><?php the_content(); ?>
</a>
<div class="clearfix"></div>
<?php endwhile; ?>
</article>
<?php
define('WP_USE_THEMES', false);
require('/home/whiteb0x/iamwhitebox.com/staging/arkitek/blog/wp-blog-header.php');
query_posts('cat=3&showposts=2');
?>
<!DOCTYPE html>
<html>
<head></head>
<body>
<ul>
<li id="current_news">
<?php
echo "HELLO";
?>
**<?php
require('post.inc')
?>**
source
share