james smith
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Multiple Loops and Pagination in conflict on Single.phpThere was an error in the Right sidebar. I corrected it, but had the same issues:
http://www.pastebin.ca/1304815Forum: Fixing WordPress
In reply to: Multiple Loops and Pagination in conflict on Single.phpSimon,
Okay, I downloaded the 3-column basic theme from here: http://www.refueled.net/blank-wordpress-themes and deactivated all my plugins.
This is the code for my Main column: http://www.pastebin.ca/1304737
I wasn’t sure if I was supposed to put
<?php if (have_posts()) : ?>before the query. When I don’t include it, the page comes up blank (but somehow works when I use it in the original Kubrick). When I do include it, the query works.
Then, I put the code you provided into the Right sidebar:
http://www.pastebin.ca/1304741and that breaks the sidebar– it doesn’t load at all.I stripped out as much of the code in the original template as possible that would still allow it to work, and still had the above problems. Any ideas? If you don’t mind, could I see the code for your columns here?
Forum: Fixing WordPress
In reply to: Multiple Loops and Pagination in conflict on Single.phpIn the sidebar, could you have the actual posts running there too, or can you only list them? And could you have them open in the sidebar, while the main column remains static? That’s what I was after, which may not even be possible. I don’t think css likes me very much.
My email is jamesmith3 at gmail dot com if you want to email me when your base theme is done.
Forum: Fixing WordPress
In reply to: Multiple Loops and Pagination in conflict on Single.phpAh, okay. The sidebar does this:
<?php iinclude_page(11); ?>. Page 11 is where I put the gallery originally, so I just used the iinclude_page to grab it. I was really just trying to see if I could.You’re right about stripping out all the extras, but I should note that my problems started before putting the gallery in there.
I was trying to update the template I already had in there, but I think you’re right and I should just start from scratch. I guess Kubrick is the best place to start?
Forum: Fixing WordPress
In reply to: Multiple Loops and Pagination in conflict on Single.phpThe code for iinclude_page is here.
I haven’t edited it at all. The page that’s being included hasn’t had anything added either, I just made it a pretty basic page. It starts with the standard query:
<?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?>Forum: Fixing WordPress
In reply to: Multiple Loops and Pagination in conflict on Single.phpHey, thanks very much for that. Here are the links…
sidebar.php (left column)
sidebar3.php (right column)
I knew the css was screwy, but I’d been focusing on trying to get the thing functional before trying to make it look good. Weird thing is, the it looks fine for me in Firefox on Windows.
Anyway, thanks again.
Forum: Fixing WordPress
In reply to: Multiple Loops and Pagination in conflict on Single.phpIt was a valiant effort, but no soap. I’ve decided to alter the design a little bit– I’m not going to try and get pagination working on both columns. I won’t hold it against you if you could help me get it working on the Right column though.
This is what I’ve got working right now (the colors are just to see where everything is really located).
Forum: Fixing WordPress
In reply to: Multiple Loops and Pagination in conflict on Single.phpYeah, you were right. I accidentally got it to work by trying every query I could google. Now the issue is that pagination is broken.
The Center column is displaying posts like this:
<?php if (have_posts()) : ?> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts($query_string.'showposts=1&cat=19,20&paged=$paged'); ?> <?php while (have_posts()) : the_post(); ?>The Right column displays posts properly using any of these:
<?php query_posts($query_string.'cat=-19,-20'); ?> <?php while (have_posts()) : the_post(); ?>or
<?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts($query_string.'cat=-19,-20&showposts=2&paged=$page'); ?> <?php while (have_posts()) : the_post(); ?>or
<?php $thePage = $_GET["paged"]; query_posts("cat=-19,-20&paged=$thePage"); <?php while (have_posts()) : the_post(); ?> ?>But, regardless of which code I use, pagination on BOTH columns is subsequently broken.
I’ve been thinking about using SimplePie to feed my rss into one column or the other. But then if you wanted to see old posts, I’d have to load the entire archive into that column, and that seems a little ridiculous to me. There’s got to be a cleaner way.
Any help is greatly appreciated.