echo-zoe
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Theme broken when not logged inIvovic,
Thanks so much for your persistence and help. With a few extra minutes this morning to take another stab at it, I think I got it working!!
I haven’t had time to pick through it with a fine-toothed comb, but on the surface everything looks great!
The key was to input: <?php rewind_posts(); ?> at the beginning of the second and each subsequent loop, and remove <?php else: ?> for the same loops.
Thanks again!!!
Forum: Themes and Templates
In reply to: Theme broken when not logged inI apologize if I am causing frustration. I do appreciate the help.
The weekend is almost gone and I may not have time to troubleshoot again for a while. I’ll go back and pour over it again when I get a chance.
Text can be a difficult means of communication, as emotions can be improperly communicated. In all sincerity, I do thank you for your help.
Forum: Themes and Templates
In reply to: Theme broken when not logged inI cut the main site/theme down to one loop for the time being, and that works fine. I still hope to get the multi-loop design working though.
Forum: Themes and Templates
In reply to: Theme broken when not logged inI am, like I mentioned, a total novice when it comes to php (and certainly no expert at css and html), but I have gone back and read up on the Loop, and everything I find suggests that I need to have <?php if (have_posts()) : ?> at the beginning of each loop in my index page.
I’ve tried rewriting the loops from scratch, using your suggestions, as well as examples from other multiple-loop tutorials and everything has turned out breaking completely.
I am surprised I get this to work at all, to be honest; but I am utterly baffled as to why it works well at the development site and when logged in to the real site but doesn’t work at the real site when not logged in.
(BTW, killarair is just a forum spammer)
Forum: Themes and Templates
In reply to: Theme broken when not logged inI am very much a novice when it comes to the php aspects of developing a template, but that seems to make sense. I must not yet be understanding it fully though because I tweaked it and my tweaks yield nothing at all – just a blank white page.
Here is what I changed the index.php file to:
<?php get_header(); ?> <div id="container"> <div id="leftnav"> <?php get_sidebar(); ?> </div> <div id="rightnav"> <?php include (TEMPLATEPATH . '/sidebar2.php'); ?> </div> <div id="content"> <img src="/wp-content/themes/ZoeLines/img/ez-central-header.png"> <?php $my_query = query_posts('page_id=2184'); if ($my_query->have_posts()) while ($my_query->have_posts()) : $my_query->the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <div class="entry"> <?php the_content('Read the rest of this entry »'); ?> </div> </div> <?php endwhile; else: ?> Sorry, we goofed. <?php endif; ?> <img src="/wp-content/themes/ZoeLines/img/ez-podcast-header.png"> <?php $my_query = new WP_Query('cat=54&showposts=3'); if ($my_query->have_posts()) while ($my_query->have_posts()) : $my_query->the_post(); ?> <div class="entry"> <h6><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_time('F Y') ?> - <?php the_title(); ?></a></h6> </div> <?php endwhile; else: ?> There are no podcasts at this time. <?php endif; ?> <img src="/wp-content/themes/ZoeLines/img/ez-articles-section-header.png"> <?php $my_query = new WP_Query('cat=56&showposts=5'); if ($my_query->have_posts()) while ($my_query->have_posts()) : $my_query->the_post(); ?> <div class="entry"> <h6><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_time('F j, Y') ?> - <?php the_title(); ?></a></h6> <?php the_excerpt(); ?> </div> <?php endwhile; else: ?> There are no articles at this time. <?php endif; ?> <a name="blog"></a><img src="/wp-content/themes/ZoeLines/img/ez-blog-header.png"> <?php if (have_posts()) : ?> <?php $my_query = new WP_Query('cat=-54,-56'); while ($my_query->have_posts()) : $my_query->the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <div class="date"> <?php the_time('F') ?> <?php the_time('d, Y') ?> </div> <h3 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3> <div class="entry"> <?php the_content('Continue Reading »'); ?> <hr align=center noshade size=2 color=#990000> </div> </div> <p class="postmetadata">Posted in <?php the_category(', ') ?> <a href="<?php comments_link(); ?>"><?php comments_number('Write a Comment', '1 Comment', '% Comments'); ?></a> <?php endwhile; ?> <div class="navigation"> <div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div> <div class="alignright"><?php previous_posts_link('Next Entries »') ?></div> </div> <?php else : ?> <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here. <?php include (TEMPLATEPATH . "/searchform.php"); ?> <?php endif; ?> </div> <?php get_footer(); ?> </div> </body> </html>It also still baffles me why the same file seems to work fine on the development site.
I’m glad you prodded me to think to set up the user-switchable themes. Not only because it helps illustrate what’s going on so well but because it helps me to troubleshoot without setting a (potentially) broken theme as the default. This should be built into a stock installation of WordPress!
Forum: Themes and Templates
In reply to: Theme broken when not logged inYou’re right, that file is useless, and I don’t know why it was there at all. I deleted it from the site’s folder for that theme, but it didn’t help.
Thanks for your input so far, I really appreciate your willingness to help.
Forum: Themes and Templates
In reply to: Theme broken when not logged inThat’s not the 404 page, the maroon title bars don’t show up on a 404.
Also, even if I had the wrong category IDs (despite re-checking many times), at least the “Blog” portion should show something, as the categories are defined in the negative (cat=-54,-56), so it should show everything in categories that aren’t #54 or #56. I am certain that the category IDs are correct because when I am logged in to the site as administrator, the site looks as it was designed to look. The problem is that I can’t exactly allow all of my visitors to log in as administrator in order to see the site correctly.
I just installed a user-level theme switcher to allow me to keep the site live with the old theme while still being able to provide a link to the broken theme. You can access the site via the broken theme here.
Forum: Themes and Templates
In reply to: Theme broken when not logged inWell, I do want to keep the site alive while I find a solution to the problem, so the old theme is there for now.
I suppose the best way to show what it is doing while keeping the site alive is with a screenshot.
Also, if it helps to see the theme itself, you can download it here.
Deactivating plugins has no effect on things.