Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter aweisman

    (@aweisman)

    Ok I got it…thought I’d post the answer for anyone that might come across this. So I’m not sure exactly why this happened, but I’m using roots as a starter theme and roots creates some specific htaccess stuff. For some reason, it created an htaccess file in the root of the site and in the root of the theme….don’t know :/ To keep a long story short, I emptied the htaccess file that was inside the theme and all is well. phew!

    Thread Starter aweisman

    (@aweisman)

    Is it possible that my “redirect_to=” in the log in url is just incorrect? It contains the port number. Not real sure how that is generated… Could that be the problem, or maybe just a symptom of a larger problem?

    Thread Starter aweisman

    (@aweisman)

    I haven’t. I got the feeling it was a wordpress thing since it only happens in wp-admin. Should I talk to my host?

    Thread Starter aweisman

    (@aweisman)

    Oh! good catch. I actually ran that twice, once without the post_name bit, then I added that in later so that’s why that worked for me. I’ve changed the order. Thanks for catching that!

    I am still wondering how to change the permalinks if anyone has any input on that.

    Thanks!

    Thread Starter aweisman

    (@aweisman)

    Sweet! Thanks again 🙂

    Thread Starter aweisman

    (@aweisman)

    Thanks so much for the links. Think I got it! Working with offset wasn’t really too difficult. I think I was over-thinking it a bit. I was thinking I’d have to ditch my pagination if I couldn’t use the paged parameter. But fortunately, the kriesi_pagination() function is using the $paged global which is still available. Anyway, don’t want to ramble… Here is what I ended up with for anyone that might need it. And of course feedback is welcome if this could be done better…

    $first_page_post_count = 15;
    $subsequent_pages_post_count = 24;
    $paged = $paged ? $paged : 1;
    
    if($paged > 1){
    	// not first page
    	$posts_per_page = $subsequent_pages_post_count;
    
    	if($paged == 2){
    		// second page
    		$offset = $first_page_post_count;
    	} else {
    		// subsequent pages
    		$offset = $first_page_post_count + ($subsequent_pages_post_count * ($paged - 2));
    	}
    
    } else {
    	// first page
    	$offset = 0;
    	$posts_per_page = $first_page_post_count;
    }

    Then in the query…

    'posts_per_page' => $posts_per_page,
    'offset' => $offset

Viewing 6 replies - 1 through 6 (of 6 total)