{"id":61976,"date":"2024-02-13T08:42:06","date_gmt":"2024-02-13T13:42:06","guid":{"rendered":"https:\/\/memberpress.com\/docs\/how-to-stay-on-the-same-protected-post-page-after-login\/"},"modified":"2024-02-15T09:13:50","modified_gmt":"2024-02-15T14:13:50","slug":"how-to-stay-on-the-same-protected-post-page-after-login","status":"publish","type":"ht_kb","link":"https:\/\/memberpress.com\/es\/docs\/how-to-stay-on-the-same-protected-post-page-after-login\/","title":{"rendered":"\u00bfC\u00f3mo mostrar el formulario de inicio de sesi\u00f3n y permanecer en el mismo post\/p\u00e1gina protegida despu\u00e9s de iniciar sesi\u00f3n?"},"content":{"rendered":"\n<p>For this example, let's say a user is on a protected post or page and currently is logged out. They must log in through the login link in that post. When this happens, the user is redirected to the page which is set in the \u201cURL to direct member to after login:\u201d field inside <i class=\"\">MemberPress > Settings >\u00a0Account<\/i> tab.<\/p>\n\n\n\n<p>What if you want to display a login form on the protected post\/page and allow users to stay in the same place without being redirected to another page?<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Displaying login form on post\/page<\/h2>\n\n\n\n<p>There are three ways to display the login form on a post\/page. If you don't see the login form as an unauthorized user, make sure you check the settings below in this order.\u00a0<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1. Settings Page<\/h4>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-FIzJGPjZpt.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>If you want to have more control over the position of the login form you can also disable the \u201cShow a login form on pages containing unauthorized content\u201d option and click the \u201cDefault Unauthorized Message\u201d link. This will reveal the content editor so you can add the following shortcode where you want:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>[mepr-login-form]<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-pBqqlSGrrk.png\" alt=\"\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">2. Rule<\/h4>\n\n\n\n<p>The next place where you can change login form settings is the Rule page.<\/p>\n\n\n\n<p>Open the rule that protects the page\/post under <i class=\"\">MemberPress > Rules<\/i> page\u00a0and leave it as \u201cDefault\u201d if you want to keep settings from the global settings you have set above.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-yQVemAIWb6.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>If you disabled the login form in global settings, then you can select the \u201cShow\u201d option to display the login form only on the specific post\/page protected with this rule.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-nQSxZUs7Gh.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3. Post or Page<\/h4>\n\n\n\n<p>Similar options can be set in each post\/page separately. Thus, if you kept the default option in MemberPress Settings, you can leave this option as \u201cDefault\u201d in the post\/page to display the login form.\u00a0<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-dPhlN1A35P.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>If you disabled the login form globally in MemberPress\u00a0Settings, and set it as hidden in the rule settings, but you still want to display it on a specific page, then select the \u201cShow\u201d option.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-EouNm1Gzo0.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Displaying login form on part of page protected by shortcode<\/h2>\n\n\n\n<p>If you are using  shortcode to protect some element on the post\/page you can use a special parameter <strong class=\"\">unauth<\/strong> that is responsible for displaying the login form when a user is unauthorized to access the content.<\/p>\n\n\n\n<p>Here is the shortcode to display both the message and login form:\u00a0<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>[mepr-active rule=\"123\" unauth=\"both\"] <\/code><\/pre>\n\n\n\n<p>Also, here is the shortcode that displays only the login form:\u00a0<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>[mepr-active rule=\"123\" unauth=\"login\"]<\/code><\/pre>\n\n\n\n<p>If you want to know more about shortcodes, please review<br><a href=\"https:\/\/memberpress.com\/docs\/unauthorized-redirect\/\" target=\"_blank\" rel=\"noopener\">this<\/a> article.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Displaying login form on Unauthorized Redirect<\/h2>\n\n\n\n<p>When you have a page set up as an unauthorized page in MemberPress \u2192 Settings \u2192 Pages tab like you can see below.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-C4abL5WrWD.png\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>then you can add a login form shortcode to that page as well.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-QYT4X8reCh.gif\" alt=\"\"\/><\/figure>\n\n\n\n<p>This way if not logged-in users open a protected page they will be redirected to \/unauthorized page with a login form. As soon as they submit the login form they will be redirected back to the post\/page where they came from.\u00a0<\/p>\n\n\n\n<p>Do NOT check the \u201cUse MemberPress Login Redirect URL\u201d option in this shortcode if you want to redirect users to the post\/page they came from.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Using ReadyLaunch\u2122 Login Template on Unauthorized Page<\/h3>\n\n\n\n<p>If you have the MemberPress Login template enabled on your site, you could use this template on the Unauthorized page too. To do this, you would need to design the Unauthorized page using the default WordPress Block editor and ReadyLaunch\u2122 Login block:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open the block editor to edit your Unauthorized page;<\/li>\n\n\n\n<li>Add the Shortcode block and add the following shortcode (to display the unauthorized message):<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code><b class=\"\"><code>[mepr-unauthorized-message]<\/code><\/b><\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li>Add the \u201c<b class=\"\">MP ReadyLaunch\u2122 Login<\/b>\u201d block and click <b class=\"\">Update<\/b>.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-iQKuLmiqcl.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>Also, you can design the rest of this page the way you need.<\/p>\n\n\n\n<p>You can check more information on using and setting up the ReadyLaunch\u2122 Login template in this article: <a href=\"https:\/\/memberpress.com\/docs\/customizing-the-login-page-with-readylaunch\/\">Customizing the Login Page with ReadyLaunch\u2122<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For this example, let\u2019s say a user is on a protected post or page and currently is logged out. They must log in through the login link in that post. When this happens, the user is redirected to the page which is set in the \u201cURL to direct member to after login:\u201d field inside MemberPress [\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":[1315],"ht-kb-tag":[],"class_list":{"0":"post-61976","1":"ht_kb","2":"type-ht_kb","3":"status-publish","4":"format-standard","6":"ht_kb_category-how-to","7":"entry","8":"has-post-thumbnail"},"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO Pro 4.9.5.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"For this example, let&#039;s say a user is on a protected post or page and currently is logged out. They must log in through the login link in that post. When this happens, the user is redirected to the page which is set in the &quot;URL to direct member to after login:&quot; field inside MemberPress\" \/>\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\/es\/docs\/how-to-stay-on-the-same-protected-post-page-after-login\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO Pro (AIOSEO) 4.9.5.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"es_ES\" \/>\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=\"How to display login form and stay on the same protected post\/page after login? | MemberPress\" \/>\n\t\t<meta property=\"og:description\" content=\"For this example, let&#039;s say a user is on a protected post or page and currently is logged out. They must log in through the login link in that post. When this happens, the user is redirected to the page which is set in the &quot;URL to direct member to after login:&quot; field inside MemberPress\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/memberpress.com\/es\/docs\/how-to-stay-on-the-same-protected-post-page-after-login\/\" \/>\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:42:06+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-02-15T14:13:50+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=\"How to display login form and stay on the same protected post\/page after login? | MemberPress\" \/>\n\t\t<meta name=\"twitter:description\" content=\"For this example, let&#039;s say a user is on a protected post or page and currently is logged out. They must log in through the login link in that post. When this happens, the user is redirected to the page which is set in the &quot;URL to direct member to after login:&quot; field inside MemberPress\" \/>\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\\\/es\\\/docs\\\/how-to-stay-on-the-same-protected-post-page-after-login\\\/#article\",\"name\":\"How to display login form and stay on the same protected post\\\/page after login? | MemberPress\",\"headline\":\"How to display login form and stay on the same protected post\\\/page after login?\",\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/file-FIzJGPjZpt.png\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/how-to-stay-on-the-same-protected-post-page-after-login\\\/#articleImage\",\"width\":439,\"height\":200},\"datePublished\":\"2024-02-13T08:42:06-05:00\",\"dateModified\":\"2024-02-15T09:13:50-05:00\",\"inLanguage\":\"es-ES\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/how-to-stay-on-the-same-protected-post-page-after-login\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/how-to-stay-on-the-same-protected-post-page-after-login\\\/#webpage\"},\"articleSection\":\"How To\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/how-to-stay-on-the-same-protected-post-page-after-login\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/memberpress.com\\\/es\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/doc-categories\\\/faqs\\\/#listItem\",\"name\":\"FAQs\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/doc-categories\\\/faqs\\\/#listItem\",\"position\":2,\"name\":\"FAQs\",\"item\":\"https:\\\/\\\/memberpress.com\\\/es\\\/doc-categories\\\/faqs\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/doc-categories\\\/how-to\\\/#listItem\",\"name\":\"How To\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/doc-categories\\\/how-to\\\/#listItem\",\"position\":3,\"name\":\"How To\",\"item\":\"https:\\\/\\\/memberpress.com\\\/es\\\/doc-categories\\\/how-to\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/how-to-stay-on-the-same-protected-post-page-after-login\\\/#listItem\",\"name\":\"How to display login form and stay on the same protected post\\\/page after login?\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/doc-categories\\\/faqs\\\/#listItem\",\"name\":\"FAQs\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/how-to-stay-on-the-same-protected-post-page-after-login\\\/#listItem\",\"position\":4,\"name\":\"How to display login form and stay on the same protected post\\\/page after login?\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/doc-categories\\\/how-to\\\/#listItem\",\"name\":\"How To\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#organization\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"url\":\"https:\\\/\\\/memberpress.com\\\/es\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/mp-icon-RGB_Icon-01.jpg\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/how-to-stay-on-the-same-protected-post-page-after-login\\\/#organizationLogo\",\"width\":1650,\"height\":1275,\"caption\":\"memberpress logo icon\"},\"image\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/how-to-stay-on-the-same-protected-post-page-after-login\\\/#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\\\/es\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\",\"url\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/author\\\/nikolacaseproof-com\\\/\",\"name\":\"Nikola M\",\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/memberpress.com\\\/wp-content\\\/litespeed\\\/avatar\\\/1edf820c48f9c430f380efe81887b154.jpg?ver=1775141118\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/how-to-stay-on-the-same-protected-post-page-after-login\\\/#webpage\",\"url\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/how-to-stay-on-the-same-protected-post-page-after-login\\\/\",\"name\":\"How to display login form and stay on the same protected post\\\/page after login? | MemberPress\",\"description\":\"For this example, let's say a user is on a protected post or page and currently is logged out. They must log in through the login link in that post. When this happens, the user is redirected to the page which is set in the \\\"URL to direct member to after login:\\\" field inside MemberPress\",\"inLanguage\":\"es-ES\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/docs\\\/how-to-stay-on-the-same-protected-post-page-after-login\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/blog\\\/author\\\/nikolacaseproof-com\\\/#author\"},\"datePublished\":\"2024-02-13T08:42:06-05:00\",\"dateModified\":\"2024-02-15T09:13:50-05:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#website\",\"url\":\"https:\\\/\\\/memberpress.com\\\/es\\\/\",\"name\":\"MemberPress\",\"description\":\"The All-In-One WordPress Membership Plugin\",\"inLanguage\":\"es-ES\",\"publisher\":{\"@id\":\"https:\\\/\\\/memberpress.com\\\/es\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO Pro -->\r\n\t\t<title>How to display login form and stay on the same protected post\/page after login? | MemberPress<\/title>\n\n","aioseo_head_json":{"title":"\u00bfC\u00f3mo mostrar el formulario de inicio de sesi\u00f3n y permanecer en el mismo post\/p\u00e1gina protegida despu\u00e9s de iniciar sesi\u00f3n? | MemberPress","description":"Para este ejemplo, digamos que un usuario est\u00e1 en un post o p\u00e1gina protegida y actualmente est\u00e1 desconectado. Deben iniciar sesi\u00f3n a trav\u00e9s del enlace de inicio de sesi\u00f3n en ese post. Cuando esto sucede, el usuario es redirigido a la p\u00e1gina que se establece en la \"URL para dirigir miembro despu\u00e9s de inicio de sesi\u00f3n:\" campo dentro de MemberPress","canonical_url":"https:\/\/memberpress.com\/es\/docs\/how-to-stay-on-the-same-protected-post-page-after-login\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/memberpress.com\/es\/docs\/how-to-stay-on-the-same-protected-post-page-after-login\/#article","name":"How to display login form and stay on the same protected post\/page after login? | MemberPress","headline":"How to display login form and stay on the same protected post\/page after login?","author":{"@id":"https:\/\/memberpress.com\/es\/blog\/author\/nikolacaseproof-com\/#author"},"publisher":{"@id":"https:\/\/memberpress.com\/es\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2024\/02\/file-FIzJGPjZpt.png","@id":"https:\/\/memberpress.com\/es\/docs\/how-to-stay-on-the-same-protected-post-page-after-login\/#articleImage","width":439,"height":200},"datePublished":"2024-02-13T08:42:06-05:00","dateModified":"2024-02-15T09:13:50-05:00","inLanguage":"es-ES","mainEntityOfPage":{"@id":"https:\/\/memberpress.com\/es\/docs\/how-to-stay-on-the-same-protected-post-page-after-login\/#webpage"},"isPartOf":{"@id":"https:\/\/memberpress.com\/es\/docs\/how-to-stay-on-the-same-protected-post-page-after-login\/#webpage"},"articleSection":"How To"},{"@type":"BreadcrumbList","@id":"https:\/\/memberpress.com\/es\/docs\/how-to-stay-on-the-same-protected-post-page-after-login\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es#listItem","position":1,"name":"Home","item":"https:\/\/memberpress.com\/es","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/doc-categories\/faqs\/#listItem","name":"FAQs"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/doc-categories\/faqs\/#listItem","position":2,"name":"FAQs","item":"https:\/\/memberpress.com\/es\/doc-categories\/faqs\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/doc-categories\/how-to\/#listItem","name":"How To"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/doc-categories\/how-to\/#listItem","position":3,"name":"How To","item":"https:\/\/memberpress.com\/es\/doc-categories\/how-to\/","nextItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/docs\/how-to-stay-on-the-same-protected-post-page-after-login\/#listItem","name":"How to display login form and stay on the same protected post\/page after login?"},"previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/doc-categories\/faqs\/#listItem","name":"FAQs"}},{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/docs\/how-to-stay-on-the-same-protected-post-page-after-login\/#listItem","position":4,"name":"How to display login form and stay on the same protected post\/page after login?","previousItem":{"@type":"ListItem","@id":"https:\/\/memberpress.com\/es\/doc-categories\/how-to\/#listItem","name":"How To"}}]},{"@type":"Organization","@id":"https:\/\/memberpress.com\/es\/#organization","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","url":"https:\/\/memberpress.com\/es\/","logo":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg","@id":"https:\/\/memberpress.com\/es\/docs\/how-to-stay-on-the-same-protected-post-page-after-login\/#organizationLogo","width":1650,"height":1275,"caption":"memberpress logo icon"},"image":{"@id":"https:\/\/memberpress.com\/es\/docs\/how-to-stay-on-the-same-protected-post-page-after-login\/#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\/es\/blog\/author\/nikolacaseproof-com\/#author","url":"https:\/\/memberpress.com\/es\/blog\/author\/nikolacaseproof-com\/","name":"Nikola M","image":{"@type":"ImageObject","url":"https:\/\/memberpress.com\/wp-content\/litespeed\/avatar\/1edf820c48f9c430f380efe81887b154.jpg?ver=1775141118"}},{"@type":"WebPage","@id":"https:\/\/memberpress.com\/es\/docs\/how-to-stay-on-the-same-protected-post-page-after-login\/#webpage","url":"https:\/\/memberpress.com\/es\/docs\/how-to-stay-on-the-same-protected-post-page-after-login\/","name":"How to display login form and stay on the same protected post\/page after login? | MemberPress","description":"For this example, let's say a user is on a protected post or page and currently is logged out. They must log in through the login link in that post. When this happens, the user is redirected to the page which is set in the \"URL to direct member to after login:\" field inside MemberPress","inLanguage":"es-ES","isPartOf":{"@id":"https:\/\/memberpress.com\/es\/#website"},"breadcrumb":{"@id":"https:\/\/memberpress.com\/es\/docs\/how-to-stay-on-the-same-protected-post-page-after-login\/#breadcrumblist"},"author":{"@id":"https:\/\/memberpress.com\/es\/blog\/author\/nikolacaseproof-com\/#author"},"creator":{"@id":"https:\/\/memberpress.com\/es\/blog\/author\/nikolacaseproof-com\/#author"},"datePublished":"2024-02-13T08:42:06-05:00","dateModified":"2024-02-15T09:13:50-05:00"},{"@type":"WebSite","@id":"https:\/\/memberpress.com\/es\/#website","url":"https:\/\/memberpress.com\/es\/","name":"MemberPress","description":"The All-In-One WordPress Membership Plugin","inLanguage":"es-ES","publisher":{"@id":"https:\/\/memberpress.com\/es\/#organization"}}]},"og:locale":"es_ES","og:site_name":"MemberPress","og:type":"article","og:title":"How to display login form and stay on the same protected post\/page after login? | MemberPress","og:description":"For this example, let's say a user is on a protected post or page and currently is logged out. They must log in through the login link in that post. When this happens, the user is redirected to the page which is set in the &quot;URL to direct member to after login:&quot; field inside MemberPress","og:url":"https:\/\/memberpress.com\/es\/docs\/how-to-stay-on-the-same-protected-post-page-after-login\/","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:42:06+00:00","article:modified_time":"2024-02-15T14:13:50+00:00","article:publisher":"https:\/\/www.facebook.com\/memberpress\/","twitter:card":"summary_large_image","twitter:site":"@memberpress","twitter:title":"How to display login form and stay on the same protected post\/page after login? | MemberPress","twitter:description":"For this example, let's say a user is on a protected post or page and currently is logged out. They must log in through the login link in that post. When this happens, the user is redirected to the page which is set in the &quot;URL to direct member to after login:&quot; field inside MemberPress","twitter:image":"https:\/\/memberpress.com\/wp-content\/uploads\/2022\/10\/mp-icon-RGB_Icon-01.jpg"},"aioseo_meta_data":{"post_id":"61976","title":null,"description":null,"keywords":null,"keyphrases":null,"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":null,"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":"BlogPosting","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":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2025-10-09 21:51:45","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"open_ai":null,"ai":null,"created":"2024-02-13 13:42:06","updated":"2026-03-03 14:53:01"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/es\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/es\/doc-categories\/faqs\/\" title=\"FAQs\">FAQs<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/memberpress.com\/es\/doc-categories\/how-to\/\" title=\"How To\">How To<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\tHow to display login form and stay on the same protected post\/page after login?\n<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/memberpress.com\/es"},{"label":"FAQs","link":"https:\/\/memberpress.com\/es\/doc-categories\/faqs\/"},{"label":"How To","link":"https:\/\/memberpress.com\/es\/doc-categories\/how-to\/"},{"label":"How to display login form and stay on the same protected post\/page after login?","link":"https:\/\/memberpress.com\/es\/docs\/how-to-stay-on-the-same-protected-post-page-after-login\/"}],"_links":{"self":[{"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/ht-kb\/61976","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/users\/62252"}],"replies":[{"embeddable":true,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/comments?post=61976"}],"version-history":[{"count":0,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/ht-kb\/61976\/revisions"}],"wp:attachment":[{"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/media?parent=61976"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/ht-kb-category?post=61976"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/memberpress.com\/es\/wp-json\/wp\/v2\/ht-kb-tag?post=61976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}