PHP does not execute in .INC file

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
    // Include WordPress
    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(); ?>
<!-- begin 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
        // Include WordPress
        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')
    ?>**
+3
source share
1 answer

Is running post.incwith <?php?

It is important that your include file has this if you want your code to execute when it is included.

+3
source

All Articles