{"id":12555,"date":"2011-03-17T15:22:27","date_gmt":"2011-03-17T15:22:27","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/slug4apig\/"},"modified":"2011-03-17T15:33:09","modified_gmt":"2011-03-17T15:33:09","slug":"slug4apig","status":"publish","type":"plugin","link":"https:\/\/hr.wordpress.org\/plugins\/slug4apig\/","author":7714615,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"trunk","tested":"3.0.5","requires":"2.5","requires_php":"","requires_plugins":"","header_name":"Slug for attached posts by image galleries","header_author":"Claudio Pascual","header_description":"","assets_banners_color":"","last_updated":"2011-03-17 15:33:09","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.pascualyco.com\/","header_plugin_uri":"http:\/\/www.pascualyco.com\/Slug4apig.tgz","header_author_uri":"http:\/\/www.pascualyco.com\/","rating":0,"author_block_rating":0,"active_installs":20,"downloads":3195,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from\nthe directory of the stable readme.txt, so in this case, <code>\/tags\/4.3\/screenshot-1.png<\/code> (or jpg, jpeg, gif)","2":"This is the second screen shot"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[57545,186,561],"plugin_category":[],"plugin_contributors":[87882],"plugin_business_model":[],"class_list":["post-12555","plugin","type-plugin","status-publish","hentry","plugin_tags-friendly-url","plugin_tags-seo","plugin_tags-slug","plugin_contributors-clapas","plugin_committers-clapas"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/slug4apig.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Slug4apig (Slug for attached posts from image galleries) is probably the simplest plugin ever seen, though of\nimperative need for the WordPress community.<\/p>\n\n<p>This plugin just adds a field to each image inserted through the WordPress built-in gallery interface. As easy as you edit\nthe name, description, etc. for each image, with Slug4apig you will be able to edit the friendly URL (aka slug)\nand set the desired value.<\/p>\n\n<p>By default, the WordPress built-in gallery will set the attachment post's slug to the name of the image you inserted in\nthe gallery (minus .extension). This is a rather restrictive approach, as your images may have sequencial names\nassigned automatically by the photo camera, like \"S4100001.JPG\".<\/p>\n\n<p>In the previous example, an autocreated attachment post would be created under the hypothetical URL:<\/p>\n\n<pre><code>http:\/\/example.com\/2011\/03\/post-title\/S4100001\/\n<\/code><\/pre>\n\n<p>and a search on, i.e. Google, will show \"S4100001\" as the title for the page, which is senseless for the search\nengine users, robots, and SEO activities in general. Suppose the image is from a bike; then you will like the URL \nto be relevant, like:<\/p>\n\n<pre><code>http:\/\/example.com\/2011\/03\/post-title\/bike\/\n<\/code><\/pre>\n\n<p>wich is SEO friendly. There is no magic, you just set the attachment post name to overwrite the default with the name\nof your choice!<\/p>\n\n<p>Remember to use valid, unreserved characters for the slug. Characters that are allowed in an URI but do not have a\nreserved purpose are called unreserved. These include uppercase and lowercase letters, decimal digits, hyphen, period,\nunderscore, and tilde.<\/p>\n\n<h3>Future enhancements<\/h3>\n\n<ul>\n<li>Slug name validation<\/li>\n<li>Batch jobs support<\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>Slug4apig is probably the simplest plugin ever seen. No configuration, nor code insertion is needed:<\/p>\n\n<ol>\n<li>Upload <code>Slug4apig.php<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<p>And that's it!<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>What slug name do I give to my images?<\/dt>\n<dd><p>Any relevant one, as long as it uses valid, unreserved ASCII characters: {[a-z], [A-Z], [0-9], -, _, ., ~} or,\ntextually {uppercase and lowercase ASCII letters, decimal digits, hyphen, period, underscore, and tilde}. Special\ncharacters like \u00f1, \u00fc, and the like, will rise problems.<\/p>\n\n<p>For the time being, no check is performed on the slug name chosen by the user.<\/p><\/dd>\n<dt>Why should I give a slug name to all my images?<\/dt>\n<dd><p>As stated by the <a href=\"http:\/\/en.wikipedia.org\/wiki\/Clean_URL\" title=\"Clean URL Wikipedia article\">Clean URL Wikipedia article<\/a>,\nthere is aesthetic, usability and search engine optimization (SEO) purposes, as long as some other considerations.<\/p><\/dd>\n\n<\/dl>","raw_excerpt":"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.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/12555","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=12555"}],"author":[{"embeddable":true,"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/clapas"}],"wp:attachment":[{"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=12555"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=12555"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=12555"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=12555"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=12555"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=12555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}