Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter marcbauer84

    (@marcbauer84)

    Well, okay, a friend helped me to find a workaround.
    We edited the wp-includes/link-template.php and made a preg_replace at the point where it generates the wrong path.

    function next_posts( $max_page = 0, $echo = true ) {
    	$output = esc_url( get_next_posts_page_link( $max_page ) );
    	$output = str_replace('marcbauer/wordpress/','' , $output);

    It works!
    Although it doesn’t solve the underlying problem of generating the wrong path in the first place. But I’m fine with this.

    This is EXACTLY what I am struggling with at the moment.
    I have custom templates to filter post categories to specific pages:
    http://www.ancestralknowledge.org/?page_id=712

    The first page displays fine, but if you try to navigate to older posts it mixes categories and date stamps.

    Did you put the above workaround in the template.php or in the functions.php? Can you possibly include a snippet of code appearing before and after your fix so I have an idea of where you plugged it in?

    Thanks!

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

The topic ‘Problem with next_posts_link and own domain’ is closed to new replies.