{"id":2532,"date":"2026-10-20T08:34:14","date_gmt":"2026-10-20T07:34:14","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/change-you-must-login-to-post-message\/"},"modified":"2026-10-20T08:41:01","modified_gmt":"2026-10-20T07:41:01","slug":"change-you-must-login-to-post-message","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/change-you-must-login-to-post-message\/","title":{"rendered":"How to change the &#8220;You must login to post&#8221; message on the add listing page"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Visitors who are not logged in see &#8220;You must login to post.&#8221; on the add listing page. Change it with the <em>Login Message<\/em> option of the GD &gt; Add Listing block, or the <code>login_msg<\/code> attribute of the shortcode:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-text\">&#091;gd_add_listing post_type=&quot;gd_place&quot; show_login=&quot;1&quot; login_msg=&quot;Please register or log in to add your business.&quot;&#093;<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to GeoDirectory &gt; Settings &gt; General &gt; Pages and note which page is your <em>Add listing page<\/em>.<\/li>\n\n\n\n<li>Edit that page and open the GD &gt; Add Listing block (or edit the shortcode).<\/li>\n\n\n\n<li>Enter your text in <em>Login Message<\/em> and keep <em>Show the login and register links if required<\/em> ticked.<\/li>\n\n\n\n<li>Update the page.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">With the links option on, Login and Register buttons appear under the message, so visitors do not need a separate link to your login page. The Register button only shows when <em>Anyone can register<\/em> is ticked at Settings &gt; General in WordPress. If people cannot sign up, see <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/troubleshooting\/why-can-my-users-not-register\/\">Why can my users not register?<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the old message still shows next to your new one, the page has two add listing elements, for example a block and a shortcode. Remove one.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To let visitors post without an account, turn on <em>Allow posting without logging in?<\/em> at GeoDirectory &gt; Settings &gt; General (click <em>Show Advanced<\/em> to see it). The message is then not shown at all. See <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/core-widgets\/gd-add-listing\/\">GD &gt; Add Listing<\/a> for the other options.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Visitors who are not logged in see &#8220;You must login to post.&#8221; on the add listing page. Change it with the Login Message option of the GD &gt; Add Listing block, or the login_msg attribute of the shortcode: With the links option on, Login and Register buttons appear under the message, so visitors do not [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[211,432],"class_list":["post-2532","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-tips-tricks-more","gd_placecategory-how-tos"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2532","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"author":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/comments?post=2532"}],"version-history":[{"count":1,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2532\/revisions"}],"predecessor-version":[{"id":2710,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2532\/revisions\/2710"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2532"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2532"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}