{"id":4427,"date":"2021-07-05T12:45:35","date_gmt":"2021-07-05T16:45:35","guid":{"rendered":"https:\/\/themespress.ca\/?p=4427"},"modified":"2021-07-07T09:42:13","modified_gmt":"2021-07-07T13:42:13","slug":"creating-a-shortcode-to-generate-a-random-id","status":"publish","type":"post","link":"https:\/\/themespress.ca\/en\/creating-a-shortcode-to-generate-a-random-id\/","title":{"rendered":"Creating a Shortcode to generate a Random ID"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><div class=\"vc_row wpb_row vc_row-fluid\"><div class=\"wpb_column vc_column_container vc_col-sm-12\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\n\t<div class=\"wpb_text_column wpb_content_element vc_custom_1625502135248\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<p> With this tutorial, we will help you create a new shortcode that will allow you to generate a random ID; like in a <strong><a href=\"https:\/\/shareasale.com\/r.cfm?b=841990&amp;u=1476870&amp;m=64739&amp;urllink=&amp;afftrack=\" target=\"_blank\" rel=\"noopener\">Formidable Form<\/a><\/strong> hidden field for example.<\/p>\n<p>In our example below, we want to hide a field that can generate a random ID in a form.<\/p>\n<p>First of all, we need to use the mt_rand() PHP function which will return a custom ID. We add an argument that will fetch a number between 1000 and 9999.<\/p>\n<p>Then we give it a custom entity like in our WPU example &#8211;<\/p>\n\n\t\t<\/div>\n\t<\/div>\n<h2 style=\"text-align: left\" class=\"vc_custom_heading vc_do_custom_heading\" >Our custom shortcode - random ID<\/h2><div id=\"ts-enlighterjs-container-5725377\" class=\"ts-enlighterjs-container-single-enabled  \" style=\"width: 100%;  margin-top: 0px; margin-bottom: 0px;\" data-enlighter-doubleclick=\"true\" data-enlighter-windowbutton=\"true\" data-enlighter-windowtext=\"New Window\" data-enlighter-rawbutton=\"true\" data-enlighter-rawtext=\"RAW Code\" data-enlighter-infobutton=\"false\" data-enlighter-infotext=\"EnlighterJS\" data-enlighter-indent=\"2\"><pre id=\"ts-enlighterjs-pre-5725377\" class=\"\" style=\"white-space: pre-wrap; height: 100%; margin: 0; padding: 0;\" data-enlighter-language=\"php\" data-enlighter-theme=\"classic\" data-enlighter-group=\"\" data-enlighter-title=\"\" data-enlighter-linenumbers=\"true\" data-enlighter-lineoffset=\"1\" data-enlighter-highlight=\"\">\/\/ Add Shortcode\nfunction wpu_number_entreprise_shortcode() {\n   $numberplugin = mt_rand(1000, 9999);\n   return &#039;wpu-&#039; . $numberplugin;\n}\nadd_shortcode( &#039;idrand&#039;, &#039;wpu_number_entreprise_shortcode&#039; );<\/pre><\/div>\n\t<div class=\"wpb_text_column wpb_content_element\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<p> So we could obtain something like: wpu-3874<\/p>\n<p>You&#8217;re also free to change any arguments within the <a href=\"https:\/\/www.php.net\/manual\/fr\/function.mt-rand.php\"><strong><span class=\"me0\">mt_rand<\/span><\/strong><\/a> function.<\/p>\n\n\t\t<\/div>\n\t<\/div>\n\n\t<div class=\"wpb_text_column wpb_content_element\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<p><strong>Shortcode :<\/strong> [idrand]<\/p>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div><\/div><\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"With this tutorial, we will help you create a new shortcode that will allow you to generate a random ID; like in a Formidable Form hidden field for example. In<div class=\"read-more\"><a class=\"btn button-secondary\" href=\"https:\/\/themespress.ca\/en\/creating-a-shortcode-to-generate-a-random-id\/\">Read More<\/a><\/div>","protected":false},"author":81,"featured_media":4390,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[283],"tags":[],"class_list":["post-4427","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Share the post &quot;Creating a Shortcode to generate a Random ID&quot; Facebook LinkedIn Twitter Partager... E-mail Ajouter aux favoris Bluesky With this tutorial, we will help you create a new shortcode that will allow you to generate a random ID; like in a Formidable Form hidden field for example. In our example below, we want\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Daniel\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/themespress.ca\/en\/creating-a-shortcode-to-generate-a-random-id\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Themespress - Des tutoriels et ressources WordPress\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Creating a Shortcode to generate a Random ID - Themespress\" \/>\n\t\t<meta property=\"og:description\" content=\"Share the post &quot;Creating a Shortcode to generate a Random ID&quot; Facebook LinkedIn Twitter Partager... E-mail Ajouter aux favoris Bluesky With this tutorial, we will help you create a new shortcode that will allow you to generate a random ID; like in a Formidable Form hidden field for example. In our example below, we want\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/themespress.ca\/en\/creating-a-shortcode-to-generate-a-random-id\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2021-07-05T16:45:35-04:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2021-07-07T13:42:13-04:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Creating a Shortcode to generate a Random ID - Themespress\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Share the post &quot;Creating a Shortcode to generate a Random ID&quot; Facebook LinkedIn Twitter Partager... E-mail Ajouter aux favoris Bluesky With this tutorial, we will help you create a new shortcode that will allow you to generate a random ID; like in a Formidable Form hidden field for example. In our example below, we want\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/creating-a-shortcode-to-generate-a-random-id\\\/#blogposting\",\"name\":\"Creating a Shortcode to generate a Random ID - Themespress\",\"headline\":\"Creating a Shortcode to generate a Random ID\",\"author\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/author\\\/daniel\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/themespress.ca\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/php-151199.png\",\"width\":1920,\"height\":1214,\"caption\":\"Cr\\u00e9er un shortcode \\u2013 Obtenir un ID al\\u00e9atoire\"},\"datePublished\":\"2021-07-05T12:45:35-04:00\",\"dateModified\":\"2021-07-07T09:42:13-04:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/creating-a-shortcode-to-generate-a-random-id\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/creating-a-shortcode-to-generate-a-random-id\\\/#webpage\"},\"articleSection\":\"Tutorials, Optional\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/creating-a-shortcode-to-generate-a-random-id\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/#listItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/themespress.ca\\\/en\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/categorie\\\/tutorials\\\/#listItem\",\"name\":\"Tutorials\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/categorie\\\/tutorials\\\/#listItem\",\"position\":2,\"name\":\"Tutorials\",\"item\":\"https:\\\/\\\/themespress.ca\\\/en\\\/categorie\\\/tutorials\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/creating-a-shortcode-to-generate-a-random-id\\\/#listItem\",\"name\":\"Creating a Shortcode to generate a Random ID\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/#listItem\",\"name\":\"Accueil\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/creating-a-shortcode-to-generate-a-random-id\\\/#listItem\",\"position\":3,\"name\":\"Creating a Shortcode to generate a Random ID\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/categorie\\\/tutorials\\\/#listItem\",\"name\":\"Tutorials\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/#organization\",\"name\":\"Themespress\",\"description\":\"Des tutoriels et ressources WordPress\",\"url\":\"https:\\\/\\\/themespress.ca\\\/en\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/author\\\/daniel\\\/#author\",\"url\":\"https:\\\/\\\/themespress.ca\\\/en\\\/author\\\/daniel\\\/\",\"name\":\"Daniel\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/creating-a-shortcode-to-generate-a-random-id\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93cd2188e40b3289d305e88acb676eb8b84078e50e06f4eb38a0152903b34c9d?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Daniel\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/creating-a-shortcode-to-generate-a-random-id\\\/#webpage\",\"url\":\"https:\\\/\\\/themespress.ca\\\/en\\\/creating-a-shortcode-to-generate-a-random-id\\\/\",\"name\":\"Creating a Shortcode to generate a Random ID - Themespress\",\"description\":\"Share the post \\\"Creating a Shortcode to generate a Random ID\\\" Facebook LinkedIn Twitter Partager... E-mail Ajouter aux favoris Bluesky With this tutorial, we will help you create a new shortcode that will allow you to generate a random ID; like in a Formidable Form hidden field for example. In our example below, we want\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/creating-a-shortcode-to-generate-a-random-id\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/author\\\/daniel\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/author\\\/daniel\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/themespress.ca\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/php-151199.png\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/creating-a-shortcode-to-generate-a-random-id\\\/#mainImage\",\"width\":1920,\"height\":1214,\"caption\":\"Cr\\u00e9er un shortcode \\u2013 Obtenir un ID al\\u00e9atoire\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/creating-a-shortcode-to-generate-a-random-id\\\/#mainImage\"},\"datePublished\":\"2021-07-05T12:45:35-04:00\",\"dateModified\":\"2021-07-07T09:42:13-04:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/themespress.ca\\\/en\\\/\",\"name\":\"Themespress\",\"description\":\"Des tutoriels et ressources WordPress\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Creating a Shortcode to generate a Random ID - Themespress","description":"Share the post \"Creating a Shortcode to generate a Random ID\" Facebook LinkedIn Twitter Partager... E-mail Ajouter aux favoris Bluesky With this tutorial, we will help you create a new shortcode that will allow you to generate a random ID; like in a Formidable Form hidden field for example. In our example below, we want","canonical_url":"https:\/\/themespress.ca\/en\/creating-a-shortcode-to-generate-a-random-id\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/themespress.ca\/en\/creating-a-shortcode-to-generate-a-random-id\/#blogposting","name":"Creating a Shortcode to generate a Random ID - Themespress","headline":"Creating a Shortcode to generate a Random ID","author":{"@id":"https:\/\/themespress.ca\/en\/author\/daniel\/#author"},"publisher":{"@id":"https:\/\/themespress.ca\/en\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/themespress.ca\/wp-content\/uploads\/2021\/07\/php-151199.png","width":1920,"height":1214,"caption":"Cr\u00e9er un shortcode \u2013 Obtenir un ID al\u00e9atoire"},"datePublished":"2021-07-05T12:45:35-04:00","dateModified":"2021-07-07T09:42:13-04:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/themespress.ca\/en\/creating-a-shortcode-to-generate-a-random-id\/#webpage"},"isPartOf":{"@id":"https:\/\/themespress.ca\/en\/creating-a-shortcode-to-generate-a-random-id\/#webpage"},"articleSection":"Tutorials, Optional"},{"@type":"BreadcrumbList","@id":"https:\/\/themespress.ca\/en\/creating-a-shortcode-to-generate-a-random-id\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/themespress.ca\/en\/#listItem","position":1,"name":"Accueil","item":"https:\/\/themespress.ca\/en\/","nextItem":{"@type":"ListItem","@id":"https:\/\/themespress.ca\/en\/categorie\/tutorials\/#listItem","name":"Tutorials"}},{"@type":"ListItem","@id":"https:\/\/themespress.ca\/en\/categorie\/tutorials\/#listItem","position":2,"name":"Tutorials","item":"https:\/\/themespress.ca\/en\/categorie\/tutorials\/","nextItem":{"@type":"ListItem","@id":"https:\/\/themespress.ca\/en\/creating-a-shortcode-to-generate-a-random-id\/#listItem","name":"Creating a Shortcode to generate a Random ID"},"previousItem":{"@type":"ListItem","@id":"https:\/\/themespress.ca\/en\/#listItem","name":"Accueil"}},{"@type":"ListItem","@id":"https:\/\/themespress.ca\/en\/creating-a-shortcode-to-generate-a-random-id\/#listItem","position":3,"name":"Creating a Shortcode to generate a Random ID","previousItem":{"@type":"ListItem","@id":"https:\/\/themespress.ca\/en\/categorie\/tutorials\/#listItem","name":"Tutorials"}}]},{"@type":"Organization","@id":"https:\/\/themespress.ca\/en\/#organization","name":"Themespress","description":"Des tutoriels et ressources WordPress","url":"https:\/\/themespress.ca\/en\/"},{"@type":"Person","@id":"https:\/\/themespress.ca\/en\/author\/daniel\/#author","url":"https:\/\/themespress.ca\/en\/author\/daniel\/","name":"Daniel","image":{"@type":"ImageObject","@id":"https:\/\/themespress.ca\/en\/creating-a-shortcode-to-generate-a-random-id\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/93cd2188e40b3289d305e88acb676eb8b84078e50e06f4eb38a0152903b34c9d?s=96&d=mm&r=g","width":96,"height":96,"caption":"Daniel"}},{"@type":"WebPage","@id":"https:\/\/themespress.ca\/en\/creating-a-shortcode-to-generate-a-random-id\/#webpage","url":"https:\/\/themespress.ca\/en\/creating-a-shortcode-to-generate-a-random-id\/","name":"Creating a Shortcode to generate a Random ID - Themespress","description":"Share the post \"Creating a Shortcode to generate a Random ID\" Facebook LinkedIn Twitter Partager... E-mail Ajouter aux favoris Bluesky With this tutorial, we will help you create a new shortcode that will allow you to generate a random ID; like in a Formidable Form hidden field for example. In our example below, we want","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/themespress.ca\/en\/#website"},"breadcrumb":{"@id":"https:\/\/themespress.ca\/en\/creating-a-shortcode-to-generate-a-random-id\/#breadcrumblist"},"author":{"@id":"https:\/\/themespress.ca\/en\/author\/daniel\/#author"},"creator":{"@id":"https:\/\/themespress.ca\/en\/author\/daniel\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/themespress.ca\/wp-content\/uploads\/2021\/07\/php-151199.png","@id":"https:\/\/themespress.ca\/en\/creating-a-shortcode-to-generate-a-random-id\/#mainImage","width":1920,"height":1214,"caption":"Cr\u00e9er un shortcode \u2013 Obtenir un ID al\u00e9atoire"},"primaryImageOfPage":{"@id":"https:\/\/themespress.ca\/en\/creating-a-shortcode-to-generate-a-random-id\/#mainImage"},"datePublished":"2021-07-05T12:45:35-04:00","dateModified":"2021-07-07T09:42:13-04:00"},{"@type":"WebSite","@id":"https:\/\/themespress.ca\/en\/#website","url":"https:\/\/themespress.ca\/en\/","name":"Themespress","description":"Des tutoriels et ressources WordPress","inLanguage":"en-US","publisher":{"@id":"https:\/\/themespress.ca\/en\/#organization"}}]},"og:locale":"en_US","og:site_name":"Themespress - Des tutoriels et ressources WordPress","og:type":"article","og:title":"Creating a Shortcode to generate a Random ID - Themespress","og:description":"Share the post &quot;Creating a Shortcode to generate a Random ID&quot; Facebook LinkedIn Twitter Partager... E-mail Ajouter aux favoris Bluesky With this tutorial, we will help you create a new shortcode that will allow you to generate a random ID; like in a Formidable Form hidden field for example. In our example below, we want","og:url":"https:\/\/themespress.ca\/en\/creating-a-shortcode-to-generate-a-random-id\/","article:published_time":"2021-07-05T16:45:35-04:00","article:modified_time":"2021-07-07T13:42:13-04:00","twitter:card":"summary","twitter:title":"Creating a Shortcode to generate a Random ID - Themespress","twitter:description":"Share the post &quot;Creating a Shortcode to generate a Random ID&quot; Facebook LinkedIn Twitter Partager... E-mail Ajouter aux favoris Bluesky With this tutorial, we will help you create a new shortcode that will allow you to generate a random ID; like in a Formidable Form hidden field for example. In our example below, we want"},"aioseo_meta_data":{"post_id":"4427","title":null,"description":null,"keywords":[],"keyphrases":{"focus":[],"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"Article","defaultPostTypeGraph":""},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":{"locations":{"business":{"name":"","businessType":"","image":"","areaServed":"","urls":{"website":"","aboutPage":"","contactPage":""},"address":{"streetLine1":"","streetLine2":"","zipCode":"","city":"","state":"","country":"","addressFormat":"#streetLineOne\n#streetLineTwo\n#city, #state #zipCode"},"contact":{"email":"","phone":"","phoneFormatted":"","fax":"","faxFormatted":""},"ids":{"vat":"","tax":"","chamberOfCommerce":""},"payment":{"priceRange":"","currenciesAccepted":"","methods":""}}},"openingHours":{"useDefaults":true,"show":true,"alwaysOpen":false,"use24hFormat":false,"timezone":"","labels":{"closed":"","alwaysOpen":""},"days":{"monday":{"open24h":false,"closed":false,"openTime":"09:00","closeTime":"17:00"},"tuesday":{"open24h":false,"closed":false,"openTime":"09:00","closeTime":"17:00"},"wednesday":{"open24h":false,"closed":false,"openTime":"09:00","closeTime":"17:00"},"thursday":{"open24h":false,"closed":false,"openTime":"09:00","closeTime":"17:00"},"friday":{"open24h":false,"closed":false,"openTime":"09:00","closeTime":"17:00"},"saturday":{"open24h":false,"closed":false,"openTime":"09:00","closeTime":"17:00"},"sunday":{"open24h":false,"closed":false,"openTime":"09:00","closeTime":"17:00"}}}},"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-07-06 10:28:38","updated":"2025-06-07 20:54:06","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/themespress.ca\/en\/\" title=\"Accueil\">Accueil<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/themespress.ca\/en\/categorie\/tutorials\/\" title=\"Tutorials\">Tutorials<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tCreating a Shortcode to generate a Random ID\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Accueil","link":"https:\/\/themespress.ca\/en\/"},{"label":"Tutorials","link":"https:\/\/themespress.ca\/en\/categorie\/tutorials\/"},{"label":"Creating a Shortcode to generate a Random ID","link":"https:\/\/themespress.ca\/en\/creating-a-shortcode-to-generate-a-random-id\/"}],"_links":{"self":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/posts\/4427","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/users\/81"}],"replies":[{"embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/comments?post=4427"}],"version-history":[{"count":0,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/posts\/4427\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/media\/4390"}],"wp:attachment":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/media?parent=4427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/categories?post=4427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/tags?post=4427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}