stupidzbu
Forum Replies Created
-
fixed it .. was a problem with archive.php and archives.php
actually, now that I test it out some more, nothing works at all. It just shows the same posts as the home page…
hmm I guess you can’t highlight code! make sure to remove the
tags!!Forum: Fixing WordPress
In reply to: Problem creating Next/Previous pagination with my themeOk. I got one of the plugins to semi-work. WP-pagination now displays pages, but loads the same posts
I added this code
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $offset = ($paged*10)-10; $offset = ($offset <= 0) ? 0 : $offset; $args = array('category_name'=>'nightlife','posts_per_page'=>10,'paged'=>$paged,'offset'=>$offset); query_posts($args); $posts_remaining = $the_query->found_posts-$offset;<– Stuff Happens –>
<?php if(function_exists('wp_paginate')) { wp_paginate(); } ?>I know part of my problem is with the category_name being called and I am trying to make that dynamic so it will paginate on each category page.
The main page shows the pagination tab (first time I’ve seen it in the last 36 hours) but loads the same 5 posts
Forum: Fixing WordPress
In reply to: Problem creating Next/Previous pagination with my themeok
this was able to create something using Page_navi$page = (get_query_var('paged')) ? get_query_var('paged') : 1; $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(); $wp_query->query("paged=$page&cat=3"); if(function_exists('wp_pagenavi')) { wp_pagenavi(); } while ($wp_query->have_posts()) : $wp_query->the_post();<– stuff –>
<?php endwhile ?> <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?> <?php $wp_query = null; $wp_query = $temp; ?>But I have no idea how to integrate that with the existing loop parameters
$the_query = new WP_Query('cat=-'. $GLOBALS[ex_feat] . ',-' . $GLOBALS[ex_vid] . '&showposts=' . get_option('woo_other_entries') . '&orderby=post_date&order=desc'); $counter = 0; while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID;So i don’t get a double loop! At least the pagination buttons appear haha man that felt great!
Forum: Fixing WordPress
In reply to: Problem creating Next/Previous pagination with my themeNot to sound rude, but I tried that and many different instances of before posting the dilemma.
adding that $paged line without doing some tweak to the $the_query string leads to
Parse error: syntax error, unexpected $end in ^/blog.php on line 50which ends up being a </div> tag and I have no idea why.
Forum: Fixing WordPress
In reply to: Problem creating Next/Previous pagination with my themeDon’t know if this will help, but this is the URL
Sinphoto.com Safe for work, just a catchy name
Forum: Fixing WordPress
In reply to: Category visibility parent & child categoriesawesome.. great plug-in..
I ran into some problems because I was originally including the following code:
is_category(18)
And when I clicked on the children, it would give me a 404 error. I then realized that if I just used:
is_category()
It would give me the design I was looking for for the children!
Forum: Fixing WordPress
In reply to: Using multiple instances of WordPress on one site.Okay,
I tried the categories idea, but it wasn’t what I really wanted. I don’t clutter the main page with the topics that I have set up other WP’s for (credit card, travel blog, travel skill, and deals). This is what I am thinking, and please correct me if I am wrong!
On the “deals” section of the site, I want people to access that section and those posts, but at the same time I want the side-bars to have different information than the main page, things relevant to “deals” when they go there. As far as I understand, that isn’t possible with categories. Categories will open up a page with everything I wrote under that category, but I won’t be able to redesign the side-bars or the adsense style.
Would using something like WPMU work? By having deals.ihavetoblog.com, etc?
My main concern is if the site gets traffic and people start to register, I will have to ask them to do so for 5 different WP’s!!