CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • How do you get public forms to work in WordPress? - Solved.
Pages: [1]

Author Topic: How do you get public forms to work in WordPress? - Solved.  (Read 385 times)

GreatGuido

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.4.4
  • CMS version: Wordpress 3.8.1
  • MySQL version: 5.5.36-cll
  • PHP version: 5.4.19
How do you get public forms to work in WordPress? - Solved.
April 04, 2014, 11:49:56 am
When a user clicks on an Unsubscribe link in an email, the optout form opens in the web site front page. I suppose this is true for all forms. I would like the form to open in a much simpler page.

After reading documentation and forum extensively, I tried a bunch of things, but I still can't figure it out. The closest reference I could find to my problem is the article below, but I can't seem to make it work.

http://wiki.civicrm.org/confluence/display/CRMDOC43/Displaying+Public+Forms+in+WordPress+Frontend+Sites

Here's what I have done so far.
  • Created a simplified page template specifically for displaying forms.
  • Created a Test Page using that template with a specific form in it - //mywebsite.ca/?page_id=3779. When I navigate to the test page it displays the form that I want correctly and responses seem to use the same template. Lovely, I'm making progress.
  • Created an almost empty page using the same template - //mywebsite.ca/?page_id=5115. I'd like to now have an Unsubscribe Link take me to that page or at least a page using the simplified template instead of the web site front page. When I send a bulk mail to myself the unsubscribe link looks like this: http://mywebsite.ca/?page=CiviCRM&q=civicrm/mailing/optout&reset=1&jid=16&qid=9&h=9a41842e148e4caa  and the Unsubscribe form displays on the web site front page
  • So based on the clues in the article above I tried manually inserting ?page_id=5115 in the URL so it looks like this:
    http://mywebsite.ca/?page_id=5115?page=CiviCRM&q=civicrm/mailing/optout&reset=1&jid=16&qid=9&h=9a41842e148e4caa
    The result is that the empty page displays, but not the unsubscribe form.
Can someone advise me what I should do to make this work?
If I get this working I promise to draft an update to the wiki article I referred to earlier.

- Update: The referenced instructions work after I changed the default setting for permalinks from the ugly &page_id=xxx to pretty much anything else. I feel dumb, but I'm learning. I'll try and update the documentation when I'm sure I've got it right.
« Last Edit: April 05, 2014, 07:40:21 am by GreatGuido »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • How do you get public forms to work in WordPress? - Solved.

This forum was archived on 2017-11-26.