{"id":10,"date":"2005-04-25T21:23:54","date_gmt":"2005-04-25T11:23:54","guid":{"rendered":"http:\/\/www.thunderguy.com\/plusplus\/20050418\/wordpress-permalinks-should-be-slashed\/"},"modified":"2005-04-25T21:33:26","modified_gmt":"2005-04-25T11:33:26","slug":"wordpress-permalinks-should-be-slashed","status":"publish","type":"post","link":"https:\/\/thunderguy.com\/semicolon\/2005\/04\/25\/wordpress-permalinks-should-be-slashed\/","title":{"rendered":"WordPress permalinks should be slashed"},"content":{"rendered":"<p>In WordPress 1.5, permalinks must end in a slash, otherwise the <code>nextpage<\/code> tag will not work.<\/p>\n<p>In the Options\/Permalinks screen of WordPress&#8217;s admin interface, I had my permalink format set to <\/p>\n<pre class=\"code\">\r\n<code>\/%year%%monthnum%%day%\/%postname%<\/code>\r\n<\/pre>\n<p>But then if I used a <code>nextpage<\/code> tag in a post, the next page links didn&#8217;t work. the links for subsequent pages were showing up as <code>post-title2\/<\/code>, but clicking the links yielded a &#8220;page not found&#8221;.<\/p>\n<p>It turns out that the link should have been <code>post-title\/2\/<\/code>. However, the code that generates the link seems to just add the page number after the parmalink, without checking whether it should also add a slash. To fix it simply, I just added a slash after the permalink, like this.<\/p>\n<pre class=\"code\">\r\n<code>\/%year%%monthnum%%day%\/%postname%<span class=\"hilite-code\">\/<\/span><\/code>\r\n<\/pre>\n<p>Now multi-page posts work fine.<\/p>\n<p>There are other reasons why permalinks should end in a slash too. Maybe I will write about this sometime.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In WordPress 1.5, permalinks must end in a slash, otherwise the nextpage tag will not work. In the Options\/Permalinks screen of WordPress&#8217;s admin interface, I had my permalink format set to \/%year%%monthnum%%day%\/%postname% But then if I used a nextpage tag in a post, the next page links didn&#8217;t work. the links for subsequent pages were [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[83],"class_list":["post-10","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/posts\/10","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/comments?post=10"}],"version-history":[{"count":0,"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/posts\/10\/revisions"}],"wp:attachment":[{"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/media?parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/categories?post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thunderguy.com\/semicolon\/wp-json\/wp\/v2\/tags?post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}