Viewing 2 replies - 1 through 2 (of 2 total)
  • I installed PHP in post/page plugin (your choice) and then wrote a simple login script. Compare the entered password to a string (or to csv, database etc your choice) and if it is the same, then echo ‘[contact form]’

    Oh, by the way, install another plugin to hide post/page from built-in search especially if you do something like

    if ($pass == “xyz”)

    because it will show up when the page is searched. If you hide the post/page from being searched it will not show. If you use external file as stored password then I guess it does not matter.

    Sometimes I think too complicated for a simpler solution. What about password protecting the page/post where the contact form is? This is a built-in function of WordPress and you do not need to install any plugins to do this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘show contact form only if login’ is closed to new replies.