Forum Replies Created

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter TinaR

    (@tinar)

    @otto42

    Ah, I get it. Well, o.k., we’ll keep the ugly date ;-).

    May we change it in something else, e.g. d? Probably not.

    But when I just use the %post_id% I still got the problem that the archive (back/forward) links don’t work right:

    3. the following archivelinks get the URL https://www.domain.tld/date/year/month/page/pagenumber, but mysteriously these pages don’t exist, although they should appear. If you click “next” you get a error 404.

    Example:

    -> you navigate to the archive of march 2009

    which is https://www.example.org/date/2009/03/

    so far no problems

    -> now you scroll down and click Next

    supposed to be https://www.example.org/date/2009/03/page/2

    *boom* error 404! Why???

    No problem if you just use %post_name%.

    I already tried what is described in the last paragraph but it didn’t work for me because it didn’t change a thing. (The recreated .htaccess has the same content as the one I deleted in that process.)

    Paged Navigation Doesn’t Work Sometimes navigation to second (and subsequent) pages of posts does not work as expected. Your page may generate a link to a page with one of these URIs: https://www.example.com/page/2/
    https://www.example.name/category/categoryname/page/2/
    https://www.example/year/month/day/page/2/
    https://www.example/year/month/page/2/
    The result of clicking one of those links is that the page loads with all the surroundings (header, footer, sidebar), but instead of a page of posts, there is an error message: “Sorry, no posts match that criteria.” This is due to a glitch in the .htaccess file that WordPress generates. To fix it, delete the contents of your .htaccess file and re-create it.

    1. In the Control Panel, go to Manage > Files (More Info on Editing Files)
    2. Click the link to your .htaccess file to edit its contents
    3. Copy the contents of the file and paste it to a text file in a text editor. This is a precaution in case your .htaccess file has manual entries for redirects, denials or other handy htaccess tricks
    4. Delete all contents from your .htaccess file and click the Update File button.
    5. In the Control Panel, go to Options > Permalinks.
    6. Click the Update Permalink Structure button to freshly generate new rewrite rules for your permalinks.
    7. Test the results using a link that had previously broken.
    8. Add any manual htaccess entries back in your file (Place manual htaccess entries before the # BEGIN WordPress or after # END WordPress lines.)

    You may also perform similar steps by deleting the .htaccess files from the server, creating a fresh empty .htaccess file, changing its permissions to 666, and then in Options > Permalinks generate a new set of htaccess rules by clicking the Update Permalinks Structure button.

    Thread Starter TinaR

    (@tinar)

    Oh great idea, then I get e.g. example.com/%categoy%/908/ and if you klick it 400 Bad Request – it’s all messed up.

    How come it’s so [moronic expletive deleted] difficult to use just the %post_id%?!

    Where are the WordPress programmers and insiders? Are they afraid of admitting beginner’s mistakes?

    Please, could anybody tell me that this simple problem can’t be solved, though that I may give up this hope and stop wasting time?!

    Thread Starter TinaR

    (@tinar)

    Nahh, the slash behind /%post_id% doesn’t make any difference and I already removed /category using the Plugin Decategorizer. And I certainly read the codex-page a hundred times, it’s not there and until now nobody on the Web does have any clue :-(.

    I’d like to use the Post ID only, I don’t want WordPress to add the word /date to the archive structure and I want that thing to work without any errors. How come that’s such a big issue?

Viewing 3 replies - 16 through 18 (of 18 total)