{"id":161576,"date":"2011-03-17T08:00:00","date_gmt":"2011-03-17T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/slug4apig\/"},"modified":"2011-03-17T23:33:00","modified_gmt":"2011-03-17T23:33:00","slug":"slug4apig","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/slug4apig\/","title":{"rendered":"Slug for attached posts by image galleries"},"content":{"rendered":"<p>Slug4apig (Slug for attached posts from image galleries) is probably the simplest plugin ever seen, though of<br \/>\nimperative need for the WordPress community.<\/p>\n<p>This plugin just adds a field to each image inserted through the WordPress built-in gallery interface. As easy as you edit<br \/>\nthe name, description, etc. for each image, with Slug4apig you will be able to edit the friendly URL (aka slug)<br \/>\nand set the desired value.<\/p>\n<p>By default, the WordPress built-in gallery will set the attachment post\u2019s slug to the name of the image you inserted in<br \/>\nthe gallery (minus .extension). This is a rather restrictive approach, as your images may have sequencial names<br \/>\nassigned automatically by the photo camera, like \u201cS4100001.JPG\u201d.<\/p>\n<p>In the previous example, an autocreated attachment post would be created under the hypothetical URL:<\/p>\n<pre><code>http:\/\/example.com\/2011\/03\/post-title\/S4100001\/\n<\/code><\/pre>\n<p>and a search on, i.e. Google, will show \u201cS4100001\u201d as the title for the page, which is senseless for the search<br \/>\nengine users, robots, and SEO activities in general. Suppose the image is from a bike; then you will like the URL<br \/>\nto be relevant, like:<\/p>\n<pre><code>http:\/\/example.com\/2011\/03\/post-title\/bike\/\n<\/code><\/pre>\n<p>wich is SEO friendly. There is no magic, you just set the attachment post name to overwrite the default with the name<br \/>\nof your choice!<\/p>\n<p>Remember to use valid, unreserved characters for the slug. Characters that are allowed in an URI but do not have a<br \/>\nreserved purpose are called unreserved. These include uppercase and lowercase letters, decimal digits, hyphen, period,<br \/>\nunderscore, and tilde.<\/p>\n<h3>Future enhancements<\/h3>\n<ul>\n<li>Slug name validation<\/li>\n<li>Batch jobs support<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The Slug4apig plugin allows WP users to edit the SEO friendly URL (aka slug) for the autogenerated attachment<br \/>\nposts created by the built WP gallery.<\/p>\n","protected":false},"author":65,"featured_media":346500,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Slug for attached posts by image galleries - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"The Slug4apig plugin allows WP users to edit the SEO friendly URL (aka slug) for the autogenerated attachment posts created by the built WP gallery."},"footnotes":""},"categories":[1],"tags":[41964,433,2745],"class_list":["post-161576","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-friendly-url","tag-seo","tag-slug"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/161576","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=161576"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/161576\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/346500"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=161576"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=161576"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=161576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}