{"id":12,"date":"2023-05-17T15:40:35","date_gmt":"2023-05-17T14:40:35","guid":{"rendered":"https:\/\/e474.ddns.net\/blog\/?p=12"},"modified":"2023-05-18T15:24:54","modified_gmt":"2023-05-18T14:24:54","slug":"testing-permalinks-after-changing-style","status":"publish","type":"post","link":"https:\/\/e474.ddns.net\/blog\/2023\/05\/17\/testing-permalinks-after-changing-style\/","title":{"rendered":"Testing permalinks after changing style"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">As I&#8217;m quite new to WordPress, I wasn&#8217;t very clear on what happens if you change the permalink style. I started out using day+month+year+topic_title, but wondered if changing to just topic_title would break anything.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, here&#8217;s a link to my first blog post:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">See: <a href=\"https:\/\/e474.ddns.net\/blog\/2023\/05\/15\/wordpress-fix-up-rest-api-gives-404\/\" data-type=\"post\" data-id=\"7\">WordPress fix-up : rest API gives 404<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now, if I publish this, then change the permalink style, I should be able to see how it&#8217;s actually handled.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, after changing the permalink style to topic_title, I get a 404 of I try and click through on the above link. Before I changed the style, it worked correctly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;m not sure whether the link is updated if I update this blog post (after adding my results text), but that&#8217;s what I will try next.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, updating the post (e.g. clicking on the Update button in the WordPress editor) didn&#8217;t update the link. I&#8217;ve now deleted the link, and linked to the topic_title only style destination topic, hopefully that should work.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, it looks like internal links to permalinks aren&#8217;t automatically updated, I&#8217;m guessing there&#8217;s a bulk updater plugin\/feature available, or I have got the wrong end of the stick.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Digging a little deeper via Google, I came across this interesting post, which appears to cover the matter in some depth: <a href=\"https:\/\/www.wpexplorer.com\/change-permalinks-wordpress\/\">https:\/\/www.wpexplorer.com\/change-permalinks-wordpress\/<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After a bit of thought, and on the basis that I can change the style later, I&#8217;m going for a full data + topic_title naming convention for permalinks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As I&#8217;m quite new to WordPress, I wasn&#8217;t very clear on what happens if you change the permalink style. I started out using day+month+year+topic_title, but wondered if changing to just topic_title would break anything. So, here&#8217;s a link to my first blog post: See: WordPress fix-up : rest API gives 404 Now, if I publish [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5],"tags":[7,3],"class_list":["post-12","post","type-post","status-publish","format-standard","hentry","category-blogging","category-wordpress","tag-blogging","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/e474.ddns.net\/blog\/wp-json\/wp\/v2\/posts\/12","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/e474.ddns.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/e474.ddns.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/e474.ddns.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/e474.ddns.net\/blog\/wp-json\/wp\/v2\/comments?post=12"}],"version-history":[{"count":6,"href":"https:\/\/e474.ddns.net\/blog\/wp-json\/wp\/v2\/posts\/12\/revisions"}],"predecessor-version":[{"id":23,"href":"https:\/\/e474.ddns.net\/blog\/wp-json\/wp\/v2\/posts\/12\/revisions\/23"}],"wp:attachment":[{"href":"https:\/\/e474.ddns.net\/blog\/wp-json\/wp\/v2\/media?parent=12"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/e474.ddns.net\/blog\/wp-json\/wp\/v2\/categories?post=12"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/e474.ddns.net\/blog\/wp-json\/wp\/v2\/tags?post=12"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}