Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

Adding a Loop to "Below the Loop"


  #1  
Old Apr 28, 2011, 12:23 PM
stumpadelic
 
1 posts · Apr 2011
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!

Last edited by stumpadelic; Apr 28, 2011 at 01:52 PM.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Eliminate "Content Before the Loop"? LaneLester Center area post/pages 1 Nov 6, 2010 03:44 PM
Adding Static Content "Above the Loop" on home page dchrist21 Center area post/pages 2 Sep 30, 2010 02:31 PM
"Redirect Loop" Issue When Clicking ANY blog link!!?? River2Horses Atahualpa 3 Wordpress theme 5 Sep 29, 2010 02:47 PM
Can you Hide "Content Below the Loop" on Pages? NoisyDvL5 Center area post/pages 3 Aug 19, 2010 06:51 PM
Where is the "Excerpt" part of The Loop in Atuhualpa JakeThePeg Excerpts, Read more, Pagination 6 Aug 10, 2009 05:12 AM


All times are GMT -6. The time now is 03:57 AM.


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