admin管理员组文章数量:1130349
In addition to 3 public pages, my site has 20 private pages, each of which are built for an individual customer. I want a user to be able to come to a public page, enter a customer code, and display the appropriate private page for that code. I don't want to use a dropdown or list because I don't want the other 19 private pages to be visible. Any ideas on how I can do that?
In addition to 3 public pages, my site has 20 private pages, each of which are built for an individual customer. I want a user to be able to come to a public page, enter a customer code, and display the appropriate private page for that code. I don't want to use a dropdown or list because I don't want the other 19 private pages to be visible. Any ideas on how I can do that?
Share Improve this question asked Oct 18, 2018 at 18:11 TMcKTMcK 11 bronze badge 4 |1 Answer
Reset to default 0Welcome to WPSE. Based on the additional information you provided, static pages with the list of users changing only once per year, I would recommend simply using the built-in "Password Protected" publishing option.
The Publish metabox (typically in the top right corner of the page editor) has a few options beyond the default public visibility. Simply click "edit" to expand the options. See screenshot attached.
Each page published this way can have a unique password that is only shared with the user needing to view the content.
In addition to 3 public pages, my site has 20 private pages, each of which are built for an individual customer. I want a user to be able to come to a public page, enter a customer code, and display the appropriate private page for that code. I don't want to use a dropdown or list because I don't want the other 19 private pages to be visible. Any ideas on how I can do that?
In addition to 3 public pages, my site has 20 private pages, each of which are built for an individual customer. I want a user to be able to come to a public page, enter a customer code, and display the appropriate private page for that code. I don't want to use a dropdown or list because I don't want the other 19 private pages to be visible. Any ideas on how I can do that?
Share Improve this question asked Oct 18, 2018 at 18:11 TMcKTMcK 11 bronze badge 4- There is more than one route to go with something like this. Are your private pages fairly static or will the number of them change often? How about customers - do they change daily, yearly or how often would you need to have a new customer setup? – jdm2112 Commented Oct 18, 2018 at 20:22
- Hey jdm, thanks for the reply. The private pages would be fairly static and the customers change once a year. What do you recommend as the best approach? – TMcK Commented Oct 22, 2018 at 12:07
- Hey jdm. I'd still like a way to get to a private page from a public page by entering a code. Haven't cracked that nut yet. – TMcK Commented Nov 1, 2018 at 12:09
-
The trouble with that is how WordPress checks a user's permission. This happens inside
get_the_content()so collecting the password before the page loads (and sending via POST or GET) would be difficult at best. – jdm2112 Commented Nov 1, 2018 at 19:36
1 Answer
Reset to default 0Welcome to WPSE. Based on the additional information you provided, static pages with the list of users changing only once per year, I would recommend simply using the built-in "Password Protected" publishing option.
The Publish metabox (typically in the top right corner of the page editor) has a few options beyond the default public visibility. Simply click "edit" to expand the options. See screenshot attached.
Each page published this way can have a unique password that is only shared with the user needing to view the content.
本文标签: Display different pages based on form entry
版权声明:本文标题:Display different pages based on form entry 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749240620a2338022.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


get_the_content()so collecting the password before the page loads (and sending via POST or GET) would be difficult at best. – jdm2112 Commented Nov 1, 2018 at 19:36