{"id":40928,"date":"2022-08-19T15:13:24","date_gmt":"2022-08-19T13:13:24","guid":{"rendered":"https:\/\/simplylearn.com\/?p=40928"},"modified":"2022-08-19T15:13:24","modified_gmt":"2022-08-19T13:13:24","slug":"shortcodes-2","status":"publish","type":"post","link":"https:\/\/simplylearn.com\/no\/shortcodes-2\/","title":{"rendered":"Shortcodes"},"content":{"rendered":"\n

Shortcodes gir deg flere m\u00e5ter \u00e5 sette inn Simplylearn-innhold i dine kurs, sider, innlegg og andre tilpassede innleggstyper. Denne artikkelen vil vise Simplylearn-innhold du kan legge til nettstedet ditt, og forklare hvordan du gj\u00f8r det med b\u00e5de en Shortcode.<\/p>\n\n\n\n\n\n

Hva er shortcodes? <\/h2>\n\n\n\n

Alle Shortcodes bruker hakeparenteser ([ og ]), sammen med navnet p\u00e5 den aktuelle Shortcode du bruker, og eventuelle parametere (alternativer) du vil angi.<\/p>\n\n\n\n

Her er en Shortcode som viser en brukers Simplylearn-profilinformasjon, i standardtilstanden, uten parametere:<\/p>\n\n\n\n

[ld_profile]<\/code><\/pre>\n\n\n\n

Det er en annen m\u00e5te \u00e5 bruke en Shortcode p\u00e5. Du kan sjekke for \u00e5 se om en bestemt ting er sann, og hvis den er sann, kan du sende ut innholdet i Shortcode. Her er et eksempel som vil sjekke for \u00e5 se om noen er p\u00e5meldt kurset, og hvis de er det, viser en melding.<\/p>\n\n\n\n

[<\/span>student<\/span>]<\/span>Kun <\/span>en student som har tilgang til kurset vil se denne meldingen<\/span>.[\/<\/span>student<\/span>]<\/span>
<\/span><\/font><\/div><\/code><\/pre>\n\n\n\n

Du vil legge merke til at denne versjonen har b\u00e5de en \u00e5pnings- og en avsluttende kortkode, med den avsluttende kortkoden foran med en skr\u00e5strek (\/).<\/p>\n\n\n\n

Alle “Shortcodes”<\/h2>\n\n\n\n
Shortcode<\/th>Description<\/th><\/tr><\/thead>
[ld_profile]<\/code><\/td>Displays basic user information (name, avatar, etc.), as well as total courses, course points, a list of enrolled courses, quiz results & certificates earned.<\/td><\/tr>
[ld_user_course_points]<\/code><\/td>Displays the earned course points, for that user, on any page.<\/td><\/tr>
[ld_course_list]<\/code><\/td>Displays a list of courses. Many options are available to filter & customize the output. <\/td><\/tr>
[ld_lesson_list]<\/code><\/td>Similar to [ld_course_list]<\/strong> but displays a list of modules<\/strong>. <\/td><\/tr>
[ld_topic_list]<\/code><\/td>Similar to [ld_course_list]<\/strong> but displays a list of lessons<\/strong>. <\/td><\/tr>
[ld_quiz_list]<\/code><\/td>Similar to [ld_course_list]<\/strong> but displays a list of quizzes<\/strong>. <\/td><\/tr>
[ld_group_list]<\/code><\/td>Similar to [ld_course_list]<\/strong> but displays a list of groups<\/strong>. <\/td><\/tr>
[course_content]<\/code><\/td>Displays a complete list of lessons, topics & quizzes associated with that course.<\/td><\/tr>
[user_groups]<\/code><\/td>Displays the list of groups users are assigned to as either users or leaders.<\/td><\/tr>
[ld_course_expire_status]<\/code><\/td>Displays the expiration date of a course for the current user.<\/td><\/tr>
[ld_video]<\/code><\/td>Displays a video anywhere within a module or lesson page. You must be using video progression for this shortcode to work.<\/td><\/tr>
[ld_course_info]<\/code><\/td>Displays a list of registered courses, course progress details & all quizzes the user has taken.<\/td><\/tr>
[learndash_login]<\/code><\/td>Displays a login link that reveals the Simplylearn login & registration pop-up modal when clicked.<\/td><\/tr>
[ld_certificate]<\/code><\/td>Displays a download link of an earned certificate.<\/td><\/tr>
[ld_course_resume]<\/code><\/td>Returns a user to the last step in the Course (format: link\/button).<\/td><\/tr>
[visitor]<\/code><\/td>Displays content if a user is NOT<\/strong> enrolled in a course. Requires a closing [\/visitor]<\/strong> tag.<\/td><\/tr>
[student]<\/code><\/td>Displays content if a user IS<\/strong> enrolled in a course. Can also be used to display content to individual users (based on user id). Requires a closing [\/student]<\/strong> tag.<\/td><\/tr>
[course_notstarted]<\/code><\/td>Displays content if a user has access to a course, but has not completed any steps. Requires a closing [\/course_notstarted]<\/strong> tag.<\/td><\/tr>
[course_inprogress]<\/code><\/td>Displays content if a user has access to a course, has completed at least one step, but has not finished the entire course. Requires a closing [\/course_inprogress]<\/strong> tag.<\/td><\/tr>
[course_complete]<\/code><\/td>Displays content if a user has fully completed<\/strong> a course. Requires a closing [\/course_complete]<\/strong> tag.<\/td><\/tr>
[ld_quiz_complete]<\/code><\/td>Displays content if a user has completed a quiz. Requires a closing [\/ld_quiz_complete]<\/strong> tag.<\/td><\/tr>
[ld_group]<\/code><\/td>Displays a specified message to group enrollees.Requires specified group ID and a closing [\/ld_group] tag.<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"

Shortcodes gir deg flere m\u00e5ter \u00e5 sette inn Simplylearn-innhold i dine kurs, sider, innlegg og andre tilpassede innleggstyper. Denne artikkelen vil vise Simplylearn-innhold du kan legge til nettstedet ditt, og forklare hvordan du gj\u00f8r det med b\u00e5de en Shortcode. Hva er shortcodes? Alle Shortcodes bruker hakeparenteser ([ og ]), sammen med navnet p\u00e5 den aktuelle Shortcode du…<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37,39],"tags":[],"yoast_head":"\nShortcodes - SimplyLearn<\/title>\n<meta name=\"description\" content=\"Shortcodes gir deg flere m\u00e5ter \u00e5 sette inn Simplylearn-innhold i dine kurs, sider, innlegg og andre tilpassede innleggstyper. Denne artikkelen vil vise\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/simplylearn.com\/no\/shortcodes-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Shortcodes\" \/>\n<meta property=\"og:description\" content=\"Shortcodes gir deg flere m\u00e5ter \u00e5 sette inn Simplylearn-innhold i dine kurs, sider, innlegg og andre tilpassede innleggstyper. Denne artikkelen vil vise\" \/>\n<meta property=\"og:url\" content=\"https:\/\/simplylearn.com\/no\/shortcodes-2\/\" \/>\n<meta property=\"og:site_name\" content=\"SimplyLearn\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/simplylearnno\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-19T13:13:24+00:00\" \/>\n<meta name=\"author\" content=\"Sindre Fjellestad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@morfjord\" \/>\n<meta name=\"twitter:site\" content=\"@morfjord\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sindre Fjellestad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/simplylearn.com\/no\/shortcodes-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/simplylearn.com\/no\/shortcodes-2\/\"},\"author\":{\"name\":\"Sindre Fjellestad\",\"@id\":\"https:\/\/simplylearn.com\/#\/schema\/person\/98f284c5d6009b249e0662bb21367630\"},\"headline\":\"Shortcodes\",\"datePublished\":\"2022-08-19T13:13:24+00:00\",\"dateModified\":\"2022-08-19T13:13:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/simplylearn.com\/no\/shortcodes-2\/\"},\"wordCount\":549,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/simplylearn.com\/#organization\"},\"articleSection\":[\"Bygging av kurs\",\"Hjelpeartikler\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/simplylearn.com\/no\/shortcodes-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/simplylearn.com\/no\/shortcodes-2\/\",\"url\":\"https:\/\/simplylearn.com\/no\/shortcodes-2\/\",\"name\":\"Shortcodes - SimplyLearn\",\"isPartOf\":{\"@id\":\"https:\/\/simplylearn.com\/#website\"},\"datePublished\":\"2022-08-19T13:13:24+00:00\",\"dateModified\":\"2022-08-19T13:13:24+00:00\",\"description\":\"Shortcodes gir deg flere m\u00e5ter \u00e5 sette inn Simplylearn-innhold i dine kurs, sider, innlegg og andre tilpassede innleggstyper. Denne artikkelen vil vise\",\"breadcrumb\":{\"@id\":\"https:\/\/simplylearn.com\/no\/shortcodes-2\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/simplylearn.com\/no\/shortcodes-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/simplylearn.com\/no\/shortcodes-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/simplylearn.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Shortcodes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/simplylearn.com\/#website\",\"url\":\"https:\/\/simplylearn.com\/\",\"name\":\"SimplyLearn\",\"description\":\"Simplify learning and employee development with SimplyLearn\",\"publisher\":{\"@id\":\"https:\/\/simplylearn.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/simplylearn.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/simplylearn.com\/#organization\",\"name\":\"SimplyLearn\",\"url\":\"https:\/\/simplylearn.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/simplylearn.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/simplylearn.com\/wp-content\/uploads\/2023\/07\/SimplyLearn-logo-vertical-purple.png\",\"contentUrl\":\"https:\/\/simplylearn.com\/wp-content\/uploads\/2023\/07\/SimplyLearn-logo-vertical-purple.png\",\"width\":5259,\"height\":1885,\"caption\":\"SimplyLearn\"},\"image\":{\"@id\":\"https:\/\/simplylearn.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/simplylearnno\",\"https:\/\/x.com\/morfjord\",\"https:\/\/www.instagram.com\/simplylearnno\/\",\"https:\/\/www.linkedin.com\/company\/17927211\/\"],\"publishingPrinciples\":\"https:\/\/simplylearn.com\/no\/personvernerklaering\/\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/simplylearn.com\/#\/schema\/person\/98f284c5d6009b249e0662bb21367630\",\"name\":\"Sindre Fjellestad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/simplylearn.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b4232bb335845aaecf29d6963fc8e868?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b4232bb335845aaecf29d6963fc8e868?s=96&d=mm&r=g\",\"caption\":\"Sindre Fjellestad\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Shortcodes - SimplyLearn","description":"Shortcodes gir deg flere m\u00e5ter \u00e5 sette inn Simplylearn-innhold i dine kurs, sider, innlegg og andre tilpassede innleggstyper. Denne artikkelen vil vise","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/simplylearn.com\/no\/shortcodes-2\/","og_locale":"en_GB","og_type":"article","og_title":"Shortcodes","og_description":"Shortcodes gir deg flere m\u00e5ter \u00e5 sette inn Simplylearn-innhold i dine kurs, sider, innlegg og andre tilpassede innleggstyper. Denne artikkelen vil vise","og_url":"https:\/\/simplylearn.com\/no\/shortcodes-2\/","og_site_name":"SimplyLearn","article_publisher":"https:\/\/www.facebook.com\/simplylearnno","article_published_time":"2022-08-19T13:13:24+00:00","author":"Sindre Fjellestad","twitter_card":"summary_large_image","twitter_creator":"@morfjord","twitter_site":"@morfjord","twitter_misc":{"Written by":"Sindre Fjellestad","Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/simplylearn.com\/no\/shortcodes-2\/#article","isPartOf":{"@id":"https:\/\/simplylearn.com\/no\/shortcodes-2\/"},"author":{"name":"Sindre Fjellestad","@id":"https:\/\/simplylearn.com\/#\/schema\/person\/98f284c5d6009b249e0662bb21367630"},"headline":"Shortcodes","datePublished":"2022-08-19T13:13:24+00:00","dateModified":"2022-08-19T13:13:24+00:00","mainEntityOfPage":{"@id":"https:\/\/simplylearn.com\/no\/shortcodes-2\/"},"wordCount":549,"commentCount":0,"publisher":{"@id":"https:\/\/simplylearn.com\/#organization"},"articleSection":["Bygging av kurs","Hjelpeartikler"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/simplylearn.com\/no\/shortcodes-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/simplylearn.com\/no\/shortcodes-2\/","url":"https:\/\/simplylearn.com\/no\/shortcodes-2\/","name":"Shortcodes - SimplyLearn","isPartOf":{"@id":"https:\/\/simplylearn.com\/#website"},"datePublished":"2022-08-19T13:13:24+00:00","dateModified":"2022-08-19T13:13:24+00:00","description":"Shortcodes gir deg flere m\u00e5ter \u00e5 sette inn Simplylearn-innhold i dine kurs, sider, innlegg og andre tilpassede innleggstyper. Denne artikkelen vil vise","breadcrumb":{"@id":"https:\/\/simplylearn.com\/no\/shortcodes-2\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/simplylearn.com\/no\/shortcodes-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/simplylearn.com\/no\/shortcodes-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/simplylearn.com\/"},{"@type":"ListItem","position":2,"name":"Shortcodes"}]},{"@type":"WebSite","@id":"https:\/\/simplylearn.com\/#website","url":"https:\/\/simplylearn.com\/","name":"SimplyLearn","description":"Simplify learning and employee development with SimplyLearn","publisher":{"@id":"https:\/\/simplylearn.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/simplylearn.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/simplylearn.com\/#organization","name":"SimplyLearn","url":"https:\/\/simplylearn.com\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/simplylearn.com\/#\/schema\/logo\/image\/","url":"https:\/\/simplylearn.com\/wp-content\/uploads\/2023\/07\/SimplyLearn-logo-vertical-purple.png","contentUrl":"https:\/\/simplylearn.com\/wp-content\/uploads\/2023\/07\/SimplyLearn-logo-vertical-purple.png","width":5259,"height":1885,"caption":"SimplyLearn"},"image":{"@id":"https:\/\/simplylearn.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/simplylearnno","https:\/\/x.com\/morfjord","https:\/\/www.instagram.com\/simplylearnno\/","https:\/\/www.linkedin.com\/company\/17927211\/"],"publishingPrinciples":"https:\/\/simplylearn.com\/no\/personvernerklaering\/"},{"@type":"Person","@id":"https:\/\/simplylearn.com\/#\/schema\/person\/98f284c5d6009b249e0662bb21367630","name":"Sindre Fjellestad","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/simplylearn.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b4232bb335845aaecf29d6963fc8e868?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b4232bb335845aaecf29d6963fc8e868?s=96&d=mm&r=g","caption":"Sindre Fjellestad"}}]}},"lang":"no","translations":{"no":40928},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/simplylearn.com\/wp-json\/wp\/v2\/posts\/40928"}],"collection":[{"href":"https:\/\/simplylearn.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/simplylearn.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/simplylearn.com\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/simplylearn.com\/wp-json\/wp\/v2\/comments?post=40928"}],"version-history":[{"count":0,"href":"https:\/\/simplylearn.com\/wp-json\/wp\/v2\/posts\/40928\/revisions"}],"wp:attachment":[{"href":"https:\/\/simplylearn.com\/wp-json\/wp\/v2\/media?parent=40928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/simplylearn.com\/wp-json\/wp\/v2\/categories?post=40928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/simplylearn.com\/wp-json\/wp\/v2\/tags?post=40928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}