Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   Adding a Loop to "Below the Loop" (http://forum.bytesforall.com/showthread.php?t=13960)

stumpadelic Apr 28, 2011 12:23 PM

Adding a Loop to "Below the Loop"
 
Hi all, I was using custom page templates with atahualpa 3.5.3 but now with 3.6.4 I'd just like to use the 'center column' code areas to make upgrades smoother... I had this loop in my template:

PHP Code:

<?php
wp_reset_query
();
query_posts( array( 'post_type' => 'post''cat' => 47 ) );   
global 
$more;
// set $more to 0 in order to only get the first part of the post
$more 0
// the Loop
while (have_posts()) : the_post(); 
  
// the content of the post ?>
  <a href="<?php the_permalink(); ?>" title="Read <?php the_title(); ?>"><h2>
  <?php the_title(); ?></a></h2>
  <?php the_post_thumbnail(array(100,100)); the_excerpt();  edit_post_link('Edit'''''); 
endwhile;
?>

running to display posts from a category that are related to the post. When trying to "save changes" with this code in the "Below the Loop" the page doesn't submit properly, I get blank white page and the changes aren't saved. I have confirmed the problem is in the "while" loop and I tried reformatting it but that didn't work.

I will be replacing the number for 'cat' in the query with the relevant category number based off an array to attach categories to page id's.

Anyone have a solution or know why this won't save to the atahualpa options? Works perfectly in the page template. Thanks!


All times are GMT -6. The time now is 02:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.