• OK, so I’m making my own page system and I figured out everything up until now.

    Basically what it is, is a proper page system. (Oldest posts are on page one, instead of the other, wrong way around. And it’s not just reversed)

    My problem is now figuring out how to make kimpix.net/page/1/ actually redirect to/stay on /page/1/ (index.php?paged=1) instead of just redirecting to the home URL kimpix.net

    This is because I need to run:

    $pagenum = $paged;
    if($pagenum == ''){$pagenum = $numofpages;}

    …to check if someone is viewing the “front” of my blog with a page specified or not (not same as is_home() or is_front_page() mind you) and display the most recent page if so.

    The entire code used for now, just for testing:
    https://paste.uni.cc/19322

    And the problem is evident by visiting:

    https://kimpix.net/page/4/ <- most recent posts
    https://kimpix.net/page/1/ <- should contain oldest posts
    https://kimpix.net <- but redirects to this, which contains page 4

Viewing 5 replies - 1 through 5 (of 5 total)
  • https://kimpix.net/page/4/ <- most recent posts
    https://kimpix.net/page/1/ <- should contain oldest posts

    That’s seemingly only your way of thinking. All the rest of the bloggers accepted that in blogs the pagination is going back in the time from the latest (=present).

    Thread Starter ozukaki

    (@ozukaki)

    Well it’s a shame “all” bloggers don’t know any better, and it doesn’t make it any more convenient or correct. It’s just as useful as something like permlinks, with this method content stays on a static page instead of being shifted for each new post (SEO!)

    It works pretty good in books if you ask me.

    I agree it works in books… however, that’s a completely different medium. This is a blog, not a book. As far as I know every medium has its own conventions.
    Many times those conventions might break the rules of the formal logic, yet they exist and persist, regardless of our personal opinions.

    Actually, I have never heard anybody complaining about SEO in this regard.

    Thread Starter ozukaki

    (@ozukaki)

    Either way – This was not really a petition for whether or not anyone else thinks this is a good system, and I’m not out to convert people – Ignorance is bliss

    I just really would like to find out if anyone know in what part of the WordPress code the redirection is enforced so I can try to alter it.
    If I could figure this out I was also planning on looking into plugin-making so that I could bring this as an option to people that would like to give it a go as well.

    In short… On topic, please?

    Hi Ozukaki

    Any luck with sorting this out? I have the same problem but for a different reason. I’m using one of my static pages as homepage and I want to create a link called just “Blog” pointing to /page/1/ but when I use permalinks I’m redirected to the index. When I use ?page=1 it’s working fine.

    I would be very grateful for any help with this.

    Many thanks
    Konrad

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Customize or disable page/1/ redirection?’ is closed to new replies.