{"id":62093,"date":"2024-02-13T08:56:06","date_gmt":"2024-02-13T13:56:06","guid":{"rendered":"https:\/\/memberpress.com\/docs\/show-lock-icon-by-protected-posts-titles\/"},"modified":"2024-04-30T13:40:48","modified_gmt":"2024-04-30T17:40:48","slug":"show-lock-icon-by-protected-posts-titles","status":"publish","type":"ht_kb","link":"https:\/\/memberpress.com\/de\/docs\/show-lock-icon-by-protected-posts-titles\/","title":{"rendered":"LOCK-Symbol bei gesch\u00fctzten Beitragstiteln anzeigen"},"content":{"rendered":"<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-danger\"><strong class=\"\">Anmerkung:\u00a0<\/strong>Dies ist ein fortgeschrittener Artikel f\u00fcr Benutzer oder Entwickler, die mit PHP, WordPress-Hooks und FontAwesome vertraut sind.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you\u2019d like to show a LOCK icon next to the titles of your protected posts in the blog, search results, or archive views, you can do so by following the instructions below.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-j7eNGJkJMQ.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First you\u2019ll want to install a free <a href=\"https:\/\/wordpress.org\/plugins\/insert-headers-and-footers\/\">WPCode<\/a> Plugin (Details finden Sie in diesem Artikel: <a href=\"https:\/\/memberpress.com\/de\/docs\/how-to-add-custom-code-snippets-in-wpcode\/\">Hinzuf\u00fcgen von benutzerdefinierten Codefragmenten in WPCode<\/a>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Erstellen Sie nach der Installation ein neues Snippet und f\u00fcgen Sie den folgenden Text ein:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-background\" style=\"background-color:#f5f5f5\">function mepr_show_lock_icon($itle, $post_id) {<br>  $post = get_post($post_id);<br><br>  if(!class_exists('MeprRule')) { return $itle; }<br><br>  if(is_admin() || defined('REST_REQUEST')) { return $itle; }<br><br>  if(!isset($post-&gt;ID) || !$post-&gt;ID) { return $title; }<br><br>  if(strpos($title, 'fa-lock') !== false) { return $title; } \/\/Warst du schon mal hier?<br><br>  if(MeprRule::is_locked($post)) { <br>    $title = '<i class=\"fa fa-lock\" aria-hidden=\"true\"><\/i>' . \" {$title}\";<br>  }<br>  return $itle;<br>}<br>add_filter('the_title', 'mepr_show_lock_icon', 1000, 2);<br><br>function enqueue_mepr_font_awesome() {<br>  wp_enqueue_style('mepr-font-awesome', 'https:\/\/memberpress-font-awesome.s3.amazonaws.com\/css\/font-awesome.min.css');<br>}<br>add_action('wp_enqueue_scripts','enqueue_mepr_font_awesome');<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Bevor Sie auf \u201cSpeichern\u201d klicken, w\u00e4hlen Sie f\u00fcr den Code-Schnipsel unbedingt \u201eFront End\u201c aus, wie unten gezeigt.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-MoBeYoboVV.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Speichern Sie dann die \u00c4nderungen und aktivieren Sie das Snippet.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s it! You\u2019re protected posts should now show a lock icon before their title on your blog.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong class=\"\">ST\u00d6RUNGSBESEITIGUNG:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If it\u2019s not working, you may need to check your browser\u2019s developer tools to see if any errors appear in the console.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It\u2019s possible that your theme or another plugin on the site is already using font-awesome causing a conflict. If that\u2019s the case, you can delete lines #20-23 and see if it works any better.<\/p>","protected":false},"excerpt":{"rendered":"<p>If you\u2019d like to show a LOCK icon next to the titles of your protected posts in the blog, search results, or archive views, you can do so by following the instructions below. First you\u2019ll want to install a free WPCode plugin\u00a0(please check this article for details: How to add custom code snippets in WPCode). [\u2026]<\/p>\n","protected":false},"author":62252,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"_strive_editorial_status":"not-started","_strive_copy_of":0,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","_FSMCFIC_featured_image_caption":"","_FSMCFIC_featured_image_nocaption":"","_FSMCFIC_featured_image_hide":"","_strive_checklists":"\"\"","_strive_active_checklist":"62291e2bb2422","footnotes":""},"ht-kb-category":[1340],"ht-kb-tag":[],"class_list":["post-62093","ht_kb","type-ht_kb","status-publish","format-standard","ht_kb_category-rules","entry","has-post-thumbnail"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO Pro 5.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Note: This is an advanced article for users or developers familiar with PHP, WordPress hooks, and FontAwesome. If you&#039;d like to show a LOCK icon next to the titles of your protected posts in the blog, search results, or archive views, you can do so by following the instructions below. First you&#039;ll want to install a\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Nikola M\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/memberpress.com\/de\/docs\/show-lock-icon-by-protected-posts-titles\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO Pro (AIOSEO) 5.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"de_DE\" \/>\n\t\t<meta property=\"og:site_name\" content=\"MemberPress\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Show LOCK icon by protected posts titles | MemberPress\" \/>\n\t\t<meta property=\"og:description\" content=\"Note: This is an advanced article for users or developers familiar with PHP, WordPress hooks, and FontAwesome. If you&#039;d like to show a LOCK icon next to the titles of your protected posts in the blog, search results, or archive views, you can do so by following the instructions below. First you&#039;ll want to install a\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/memberpress.com\/de\/docs\/show-lock-icon-by-protected-posts-titles\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1650\" \/>\n\t\t<meta property=\"og:image:height\" content=\"1275\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-02-13T13:56:06+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-04-30T17:40:48+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/memberpress\/\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@memberpress\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Show LOCK icon by protected posts titles | MemberPress\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Note: This is an advanced article for users or developers familiar with PHP, WordPress hooks, and FontAwesome. If you&#039;d like to show a LOCK icon next to the titles of your protected posts in the blog, search results, or archive views, you can do so by following the instructions below. First you&#039;ll want to install a\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#article\",\"name\":\"Show LOCK icon by protected posts titles | MemberPress\",\"headline\":\"Show LOCK icon by protected posts titles\",\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/file-j7eNGJkJMQ.png\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#articleImage\",\"width\":365,\"height\":83},\"datePublished\":\"2024-02-13T08:56:06-05:00\",\"dateModified\":\"2024-04-30T13:40:48-04:00\",\"inLanguage\":\"de-DE\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#webpage\"},\"articleSection\":\"Rules and Redirections\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/memberpress.com\\\/de\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/advanced-topics\\\/#listItem\",\"name\":\"Advanced Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/advanced-topics\\\/#listItem\",\"position\":2,\"name\":\"Advanced Topics\",\"item\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/advanced-topics\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/custom-codes\\\/#listItem\",\"name\":\"Custom Codes\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/custom-codes\\\/#listItem\",\"position\":3,\"name\":\"Custom Codes\",\"item\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/custom-codes\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/rules\\\/#listItem\",\"name\":\"Rules and Redirections\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/advanced-topics\\\/#listItem\",\"name\":\"Advanced Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/rules\\\/#listItem\",\"position\":4,\"name\":\"Rules and Redirections\",\"item\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/rules\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#listItem\",\"name\":\"Show LOCK icon by protected posts titles\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/custom-codes\\\/#listItem\",\"name\":\"Custom Codes\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#listItem\",\"position\":5,\"name\":\"Show LOCK icon by protected posts titles\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/doc-categories\\\/rules\\\/#listItem\",\"name\":\"Rules and Redirections\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/#organization\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"url\":\"https:\\\/\\\/memberpress.com\\\/de\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/mp-icon-RGB_Icon-01.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#organizationLogo\",\"width\":1650,\"height\":1275,\"caption\":\"memberpress logo icon\"},\"image\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.instagram.com\\\/memberpress\\\/\",\"https:\\\/\\\/www.pinterest.com\\\/memberpressplugin\\\/\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/MemberPressPlugin\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/memberpress\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\",\"url\":\"https:\\\/\\\/memberpress.com\\\/de\\\/blog\\\/author\\\/nikolacaseproof-com\\\/\",\"name\":\"Nikola M\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#authorImage\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/litespeed\\\/avatar\\\/1edf820c48f9c430f380efe81887b154.jpg?ver=1787237640\",\"width\":96,\"height\":96,\"caption\":\"Nikola M\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#webpage\",\"url\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/\",\"name\":\"Show LOCK icon by protected posts titles | MemberPress\",\"description\":\"Note: This is an advanced article for users or developers familiar with PHP, WordPress hooks, and FontAwesome. If you'd like to show a LOCK icon next to the titles of your protected posts in the blog, search results, or archive views, you can do so by following the instructions below. First you'll want to install a\",\"inLanguage\":\"de-DE\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/docs\\\/show-lock-icon-by-protected-posts-titles\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"datePublished\":\"2024-02-13T08:56:06-05:00\",\"dateModified\":\"2024-04-30T13:40:48-04:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/#website\",\"url\":\"https:\\\/\\\/memberpress.com\\\/de\\\/\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"inLanguage\":\"de-DE\",\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/de\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO Pro -->\r\n\t\t<title>Show LOCK icon by protected posts titles | MemberPress<\/title>\n\n","aioseo_head_json":{"title":"LOCK-Symbol bei gesch\u00fctzten Beitragstiteln anzeigen | MemberPress","description":"Hinweis: Dies ist ein Artikel f\u00fcr fortgeschrittene Benutzer oder Entwickler, die mit PHP, WordPress-Hooks und FontAwesome vertraut sind. Wenn Sie ein LOCK-Symbol neben den Titeln Ihrer gesch\u00fctzten Beitr\u00e4ge im Blog, in den Suchergebnissen oder in den Archivansichten anzeigen m\u00f6chten, k\u00f6nnen Sie dies anhand der folgenden Anweisungen tun. Zun\u00e4chst m\u00fcssen Sie ein","canonical_url":"https:\/\/memberpress.com\/de\/docs\/show-lock-icon-by-protected-posts-titles\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/memberpress.com\/de\/docs\/show-lock-icon-by-protected-posts-titles\/#article","name":"Show LOCK icon by protected posts titles | MemberPress","headline":"Show LOCK icon by protected posts titles","author":{"@id":"https:\/\/memberpress.com\/de\/blog\/author\/nikolacaseproof-com\/#author"},"publisher":{"@id":"https:\/\/memberpress.com\/de\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-j7eNGJkJMQ.png","@id":"https:\/\/memberpress.com\/de\/docs\/show-lock-icon-by-protected-posts-titles\/#articleImage","width":365,"height":83},"datePublished":"2024-02-13T08:56:06-05:00","dateModified":"2024-04-30T13:40:48-04:00","inLanguage":"de-DE","mainEntityOfPage":{"@id":"https:\/\/memberpress.com\/de\/docs\/show-lock-icon-by-protected-posts-titles\/#webpage"},"isPartOf":{"@id":"https:\/\/memberpress.com\/de\/docs\/show-lock-icon-by-protected-posts-titles\/#webpage"},"articleSection":"Rules and Redirections"},{"@type":"BreadcrumbList","@id":"https:\/\/memberpress.com\/de\/docs\/show-lock-icon-by-protected-posts-titles\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de#listItem","position":1,"name":"Home","item":"https:\/\/memberpress.com\/de","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/doc-categories\/advanced-topics\/#listItem","name":"Advanced Topics"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/doc-categories\/advanced-topics\/#listItem","position":2,"name":"Advanced Topics","item":"https:\/\/memberpress.com\/de\/doc-categories\/advanced-topics\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/doc-categories\/custom-codes\/#listItem","name":"Custom Codes"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/doc-categories\/custom-codes\/#listItem","position":3,"name":"Custom Codes","item":"https:\/\/memberpress.com\/de\/doc-categories\/custom-codes\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/doc-categories\/rules\/#listItem","name":"Rules and Redirections"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/doc-categories\/advanced-topics\/#listItem","name":"Advanced Topics"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/doc-categories\/rules\/#listItem","position":4,"name":"Rules and Redirections","item":"https:\/\/memberpress.com\/de\/doc-categories\/rules\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/docs\/show-lock-icon-by-protected-posts-titles\/#listItem","name":"Show LOCK icon by protected posts titles"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/doc-categories\/custom-codes\/#listItem","name":"Custom Codes"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/docs\/show-lock-icon-by-protected-posts-titles\/#listItem","position":5,"name":"Show LOCK icon by protected posts titles","previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/de\/doc-categories\/rules\/#listItem","name":"Rules and Redirections"}}]},{"@type":"Organization","@id":"https:\/\/memberpress.com\/de\/#organization","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","url":"https:\/\/memberpress.com\/de\/","logo":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","@id":"https:\/\/memberpress.com\/de\/docs\/show-lock-icon-by-protected-posts-titles\/#organizationLogo","width":1650,"height":1275,"caption":"memberpress logo icon"},"image":{"@id":"https:\/\/memberpress.com\/de\/docs\/show-lock-icon-by-protected-posts-titles\/#organizationLogo"},"sameAs":["https:\/\/www.instagram.com\/memberpress\/","https:\/\/www.pinterest.com\/memberpressplugin\/","https:\/\/www.youtube.com\/c\/MemberPressPlugin","https:\/\/www.linkedin.com\/company\/memberpress\/"]},{"@type":"Person","@id":"https:\/\/memberpress.com\/de\/blog\/author\/nikolacaseproof-com\/#author","url":"https:\/\/memberpress.com\/de\/blog\/author\/nikolacaseproof-com\/","name":"Nikola M","image":{"@type":"ImageObject","@id":"https:\/\/memberpress.com\/de\/docs\/show-lock-icon-by-protected-posts-titles\/#authorImage","url":"https:\/\/memberpress.com\/wp-content\/litespeed\/avatar\/1edf820c48f9c430f380efe81887b154.jpg?ver=1787237640","width":96,"height":96,"caption":"Nikola M"}},{"@type":"WebPage","@id":"https:\/\/memberpress.com\/de\/docs\/show-lock-icon-by-protected-posts-titles\/#webpage","url":"https:\/\/memberpress.com\/de\/docs\/show-lock-icon-by-protected-posts-titles\/","name":"Show LOCK icon by protected posts titles | MemberPress","description":"Note: This is an advanced article for users or developers familiar with PHP, WordPress hooks, and FontAwesome. If you'd like to show a LOCK icon next to the titles of your protected posts in the blog, search results, or archive views, you can do so by following the instructions below. First you'll want to install a","inLanguage":"de-DE","isPartOf":{"@id":"https:\/\/memberpress.com\/de\/#website"},"breadcrumb":{"@id":"https:\/\/memberpress.com\/de\/docs\/show-lock-icon-by-protected-posts-titles\/#breadcrumblist"},"author":{"@id":"https:\/\/memberpress.com\/de\/blog\/author\/nikolacaseproof-com\/#author"},"creator":{"@id":"https:\/\/memberpress.com\/de\/blog\/author\/nikolacaseproof-com\/#author"},"datePublished":"2024-02-13T08:56:06-05:00","dateModified":"2024-04-30T13:40:48-04:00"},{"@type":"WebSite","@id":"https:\/\/memberpress.com\/de\/#website","url":"https:\/\/memberpress.com\/de\/","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","inLanguage":"de-DE","publisher":{"@id":"https:\/\/memberpress.com\/de\/#organization"}}]},"og:locale":"de_DE","og:site_name":"MemberPress","og:type":"article","og:title":"Show LOCK icon by protected posts titles | MemberPress","og:description":"Note: This is an advanced article for users or developers familiar with PHP, WordPress hooks, and FontAwesome. If you'd like to show a LOCK icon next to the titles of your protected posts in the blog, search results, or archive views, you can do so by following the instructions below. First you'll want to install a","og:url":"https:\/\/memberpress.com\/de\/docs\/show-lock-icon-by-protected-posts-titles\/","og:image":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","og:image:secure_url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","og:image:width":1650,"og:image:height":1275,"article:published_time":"2024-02-13T13:56:06+00:00","article:modified_time":"2024-04-30T17:40:48+00:00","article:publisher":"https:\/\/www.facebook.com\/memberpress\/","twitter:card":"summary_large_image","twitter:site":"@memberpress","twitter:title":"Show LOCK icon by protected posts titles | MemberPress","twitter:description":"Note: This is an advanced article for users or developers familiar with PHP, WordPress hooks, and FontAwesome. If you'd like to show a LOCK icon next to the titles of your protected posts in the blog, search results, or archive views, you can do so by following the instructions below. First you'll want to install a","twitter:image":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg"},"aioseo_meta_data":{"post_id":"62093","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"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":null,"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":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"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":null,"seo_analyzer_scan_date":"2026-08-21 01:35:36","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"open_ai":"{\"title\":{\"suggestions\":[],\"usage\":0},\"description\":{\"suggestions\":[],\"usage\":0}}","ai":null,"created":"2024-02-13 13:56:07","updated":"2026-08-21 01:35:36","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/de\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/de\/doc-categories\/advanced-topics\/\" title=\"Advanced Topics\">Advanced Topics<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/de\/doc-categories\/custom-codes\/\" title=\"Custom Codes\">Custom Codes<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/de\/doc-categories\/rules\/\" title=\"Rules and Redirections\">Rules and Redirections<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\tShow LOCK icon by protected posts titles\n<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/memberpress.com\/de"},{"label":"Advanced Topics","link":"https:\/\/memberpress.com\/de\/doc-categories\/advanced-topics\/"},{"label":"Custom Codes","link":"https:\/\/memberpress.com\/de\/doc-categories\/custom-codes\/"},{"label":"Rules and Redirections","link":"https:\/\/memberpress.com\/de\/doc-categories\/rules\/"},{"label":"Show LOCK icon by protected posts titles","link":"https:\/\/memberpress.com\/de\/docs\/show-lock-icon-by-protected-posts-titles\/"}],"_links":{"self":[{"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/ht-kb\/62093","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/users\/62252"}],"replies":[{"embeddable":true,"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/comments?post=62093"}],"version-history":[{"count":0,"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/ht-kb\/62093\/revisions"}],"wp:attachment":[{"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/media?parent=62093"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/ht-kb-category?post=62093"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/memberpress.com\/de\/wp-json\/wp\/v2\/ht-kb-tag?post=62093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}