Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter fullofwin

    (@fullofwin)

    Got it worked out finally! (I’m working on leliathomas’ site, by the way.)

    I messed around with the function you posted, Ian, and worked out that to fix it I needed to make it set $query_string[‘pagename’] to a part of the URL like “portfolio/photography”, rather than the post type.

    I’ve done it kind of a hacky way by getting the current URI and grabbing the parts I need from it, so I’m sure there’s a more correct way to do it, and hopefully this doesn’t cause issues on any other pages (doesn’t seem to so far), but this is what I came up with which fixed the problem:

    $current_uri = $_SERVER['REQUEST_URI'];
    $GLOBALS['url_segment'] = explode('/', $current_uri);
    
    function remove_page_from_query_string($query_string)
    {
    	if ($query_string['name'] == 'page' && isset($query_string['page'])) {
    		list($delim, $page_index) = split('/', $query_string['page']);
    		$query_string = array();
    		$query_string['paged'] = $page_index;
    		$query_string['pagename'] = $GLOBALS['url_segment'][1] . '/' . $GLOBALS['url_segment'][2];
    	}
    	return $query_string;
    }
    
    add_filter('request', 'remove_page_from_query_string');

    Paging is working now! Thanks for the help!

    I just had the same problem, and the culprit in my case was a mismatch in the name of the taxonomy where it was defined with register_taxonomy() in functions.php. I had to correct the typo and recreate/reassign everything in the admin for the new (correctly spelled) taxonomy, then it worked perfectly.

    Had a similar problem and I was getting the same “Catchable fatal error” message. Found it was a typo in the name for my taxonomy in functions.php where I had my register_taxonomy() function. I had to correct that and then recreate/reassign everything in the admin.

    Thread Starter fullofwin

    (@fullofwin)

    Thanks Ian – I see what the plugin is doing, but didn’t seem to work for this problem. 🙁

    Maybe could modify it a bit…

    Thread Starter fullofwin

    (@fullofwin)

    Still haven’t found a solution. Anyone know anything about this issue?

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