aweisman
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Getting 500 error for all files relating to gravity formsOk 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!
Forum: Fixing WordPress
In reply to: Port number is showing in url in wp-adminIs 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?
Forum: Fixing WordPress
In reply to: Port number is showing in url in wp-adminI haven’t. I got the feeling it was a wordpress thing since it only happens in wp-admin. Should I talk to my host?
Forum: Fixing WordPress
In reply to: Bulk Regenerate PermalinksOh! 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!
Forum: Fixing WordPress
In reply to: Changing posts_per_page for first of paginated pagesSweet! Thanks again 🙂
Forum: Fixing WordPress
In reply to: Changing posts_per_page for first of paginated pagesThanks 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