Current User: Guest
Please consider registering

 
Search Forums:


 




AWP navigation doesn't close awp_loop div?

Post

wmassingham - Guest

3:56 pm - March 19, 2009

 
1

Post edited 1:23 am - March 20, 2009 by wmassingham


EDIT: Oops. Looks like the forum processed the HTML in the thread topic. It's supposed to read "AWP doesn't close <div id="awp_loop">".

A problem recently started appearing on our site where the footer and sidebar appear switched, but only on WP Pages.
I'd dealt with this once before and fixed it by closing a <div> I'd forgotten, so I think I've traced it to another unclosed <div> (though why it only applies to Pages is beyond me--maybe I fixed it in single.php or something and it's actually the same issue).

This is WP 2.7.1, theme iNove. Page with problem is http://www.dovertide.com/staff.
The <div> in question is opened on line 133 (of the static HTML source), and looks like it should be closed around line 168.

Is this an AWP issue, or did I forget something during installation?

Aaron - Admin

7:36 am - March 20, 2009

posts 382

 
2

It seems to be a problem with the theme itself as it doesn't use the standard loop, so not all the WordPress actions are called.
You can either edit the theme to add the divs yourself as it says in the instructions or edit the loop lines so they function normally.

The quick and dirty solution would be to edit the theme's /templates/page.php and single.php files and find the lines:

<?php if (have_posts()) : the_post(); update_post_caches($posts); ?>

and replace them with:

<?php if (have_posts()) : while (have_posts()) : the_post(); update_post_caches($posts); ?>

and also the lines:

<?php else : ?>

and replace that with:

<?php endwhile; else : ?>

If it works, you may want to bring it to the theme author's attention.



Reply to Topic: AWP navigation doesn't close awp_loop div?

Name (Required):

EMail (Required):

Website):

Topic Reply:

HTML Editor
Save New PostSmileysOptions

Guest URL (required)

Math Required!
What is the sum of:
3 + 5
   

 
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell

 
 

About the Ajaxed WordPress forum

Most Users Ever Online:

35


Currently Online:

5 Guests

Forum Stats:

Groups: 1

Forums: 3

Topics: 186

Posts: 487

Membership:

There are 1177 Members

There have been 149 Guests

There is 1 Admin

There are 0 Moderators

Top Posters:

jakemc - 5

fromgrannie - 5

flash - 4

BAM - 4

Siam - 4

tombyrnes - 4

Administrators: Aaron (382 Posts)