Post posts from certain month on external site
I have been trying for about a month now to get this working but i am a complete noob with wordpress. I got wordpress to display my posts on my regular website here: cameronandrews.com/blog/index.php
but when i try and get archives working here: cameronandrews.com/blog/archives/november2013.php it just does not want to display posts from this month. I am using this code:
<?php require('blog/wp-blog-header.php'); require('blog/wp-includes/general-template.php'); require('blog/wp-includes/link-template.php.'); ?> <?php $posts = get_posts('numberposts=10&order=DESC&orderby=post_date'); foreach ($posts as $post) : setup_postdata( $post ); i echo "<h2>"; the_title(); echo "</h2>"; echo "<span style='font-size:11px;'>By <a href='/company/employees/cameronandrews.php'>"; the_author(); echo "</a> | Published "; the_date(); echo "</span><br /><br>"; the_content(); endforeach; ?>
I want to continue to use this code. I just want it to display posts from a certain month and thats it.
- The topic ‘Post posts from certain month on external site’ is closed to new replies.