Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems including WordPress loop
#4
Thanks for the quick response! And sorry for not including much detail. I was hoping maybe somebody would think, "Oh, right, WordPress! I know the problem exactly!"

Here's the site with the problem: http://www.gilsonforcouncil.com/test/
Don't judge the site harshly--I am currently bumbling through GetSimple to move my stopgap site off WordPress.


If you look at the source, you'll see that it stops right before the following code:

<?php
define('WP_USE_THEMES', false);
require('........./wp-blog-header.php');
query_posts('showposts=10');
?>

<?php
$posts = get_posts('numberposts=10&order=ASC&orderby=post_title');
foreach ($posts as $post) : start_wp(); ?>
<?php the_date(); echo "<br />"; ?>
<?php the_title(); ?>
<?php the_excerpt(); ?>
<?php
endforeach;
?>

That EXACT code (inside an otherwise blank HTML document) produces the following: http://www.gilsonforcouncil.com/test/test.php

I included the code into a page template for the home page. I realize that's not the best way to do it, but I couldn't quite figure out how to put it into either a page or a component. I'm using GetSimple version 2.03.1.

Thanks again!
Reply


Messages In This Thread
Problems including WordPress loop - by captadam - 2011-04-12, 12:42:01
Problems including WordPress loop - by Connie - 2011-04-12, 16:23:38
Problems including WordPress loop - by yojoe - 2011-04-12, 18:52:03
Problems including WordPress loop - by captadam - 2011-04-13, 07:30:52
Problems including WordPress loop - by dani - 2011-04-13, 22:58:07
Problems including WordPress loop - by Connie - 2011-04-13, 23:56:48
Problems including WordPress loop - by captadam - 2011-04-14, 08:25:55
Problems including WordPress loop - by Connie - 2011-04-14, 16:05:56
Problems including WordPress loop - by captadam - 2011-04-15, 13:01:11
Problems including WordPress loop - by captadam - 2011-04-15, 21:43:00
Problems including WordPress loop - by Connie - 2011-04-16, 04:50:23



Users browsing this thread: 2 Guest(s)