{"id":166,"date":"2010-07-19T13:41:07","date_gmt":"2010-07-19T13:41:07","guid":{"rendered":"http:\/\/us111.siteground.us\/~tlhouse0\/ptfbpro.com\/automate\/?p=166"},"modified":"2012-06-13T21:58:11","modified_gmt":"2012-06-13T21:58:11","slug":"how-to-automatically-add-tags-in-wordpress","status":"publish","type":"post","link":"https:\/\/ptfbpro.com\/automate\/how-to-automatically-add-tags-in-wordpress\/","title":{"rendered":"How to automatically add tags in WordPress"},"content":{"rendered":"<p>When I&#8217;m writing a post in WordPress that contains photos, there are a lot of repetitive tasks. For example, just inserting a photo goes something like this:<\/p>\n<ul>\n<li>copy the appropriate image URL from my Flickr page<\/li>\n<li>switch back to WordPress&#8217;s HTML editing view my browser<\/li>\n<li>type in all the opening formatting tags I want to use for each and every image<\/li>\n<li>paste in the image URL<\/li>\n<li>close all the tags<\/li>\n<\/ul>\n<p>Since the clipboard can only hold one thing at a time, that adds up to a lot of repetitive typing, but I&#8217;ve cut almost all of it down to a couple of key strokes using PTFB Pro&#8217;s inbuilt macro recorder. Setting up the macro was straightforward &#8211; it boiled down to this:<\/p>\n<ol>\n<li>Record a macro that types the opening tags, uses CTRL+V to paste the contents of the clipboard, then types the closing tags and hits the return key<\/li>\n<li>Attach a memorable hotkey sequence to the macro to trigger it on demand.<\/li>\n<\/ol>\n<p>As soon as I&#8217;d created the macro (step #1 above) I double-clicked it to make a couple of tweaks. On the Triggers page, I turned off the &#8220;Trigger spontaneously&#8221; option because I only want the macro to run when I tell it to. I then ticked the hotkey trigger, and chose the key sequence that would subsequently run the macro.<\/p>\n<p style=\"text-align: center;\"><a title=\"Trigger by hotkey by GammyKnee, on Flickr\" href=\"http:\/\/www.flickr.com\/photos\/27172079@N08\/4808723628\/\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/farm5.static.flickr.com\/4134\/4808723628_c675826eb9.jpg\" alt=\"Trigger by hotkey\" width=\"500\" height=\"464\" \/><\/a><\/p>\n<p>On this occasion I chose CTRL + SHIFT + I. Why? Well for me the &#8220;I&#8221; suggests &#8220;insert&#8221; and &#8220;image&#8221;, so it&#8217;s easy to remember, and combining it with CTRL and SHIFT together means that it&#8217;s very unlikely to clash with hotkeys used by any other software on my computer.<\/p>\n<p>Now, pasting and formatting a photo in a WordPress post comes down to this:<\/p>\n<ul>\n<li>copy the Flickr URL to the clipboard<\/li>\n<li>switch to the WordPress HTML view<\/li>\n<li>hit CTRL+SHIFT+I<\/li>\n<\/ul>\n<p>That&#8217;s a lot less typing, and it frees me from having to remember the tags I want to use. I can write the post faster not only because of the time saved by typing less, but also because I can keep my concentration going on the content of the post rather than the editing process.<\/p>\n<p>If I&#8217;d wanted I could have added more into the macro &#8211; for example I could have switched to the WordPress HTML view automatically. In this case I decided to keep it simple; I&#8217;ve found that unless I&#8217;m creating a throw-away macro for a huge one-off editing job it&#8217;s better to keep the macros small and clean. The same principle applies in writing software; keep each function small, self contained and free of side effects and they&#8217;re a lot easier to reuse!<\/p>\n<p><a href=\"http:\/\/www.ptfbpro.com\/\" target=\"_blank\">Find out more about boosting your productivity with autoclicks and macros.<\/a><br \/>\n<em><a href=\"http:\/\/www.ptfbpro.com\/download.shtml\" target=\"_blank\">CLICK HERE to download a free 30 day trial, no strings attached<\/a>. If you aren&#8217;t entirely happy simply uninstall!<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I&#8217;m writing a post in WordPress that contains photos, there are a lot of repetitive tasks. For example, just inserting a photo goes something like this: copy the appropriate <a class=\"more-link\" href=\"https:\/\/ptfbpro.com\/automate\/how-to-automatically-add-tags-in-wordpress\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[16],"tags":[],"class_list":["post-166","post","type-post","status-publish","format-standard","hentry","category-automate-repetitive-tasks"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ptfbpro.com\/automate\/wp-json\/wp\/v2\/posts\/166"}],"collection":[{"href":"https:\/\/ptfbpro.com\/automate\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ptfbpro.com\/automate\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ptfbpro.com\/automate\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ptfbpro.com\/automate\/wp-json\/wp\/v2\/comments?post=166"}],"version-history":[{"count":0,"href":"https:\/\/ptfbpro.com\/automate\/wp-json\/wp\/v2\/posts\/166\/revisions"}],"wp:attachment":[{"href":"https:\/\/ptfbpro.com\/automate\/wp-json\/wp\/v2\/media?parent=166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ptfbpro.com\/automate\/wp-json\/wp\/v2\/categories?post=166"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ptfbpro.com\/automate\/wp-json\/wp\/v2\/tags?post=166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}