How do I search WikiTree from my Wordpress site?

0 votes
83 views
I have a genealogy website dedicated to Rowland surname.  It is a WordPress site with a standard site search box.  However, I would like to provide another search box that loads the first and last names into the WikiTree search box, which then displays a list of the associated profiles at/on WikiTree (I'm not looking to have results displayed on my site).

I believe the technical description of what I need is the html that takes the "first" and "last" name fields from a form on my site, then populates the WikiTree "First Name" and "Last Name" fields in the WkiTree search box on the WikiTree site.

If there is already such a widget, that would be wonderful.
in WikiTree Tech by Ron Rowland G2G6 Mach 1 (13.8k points)
retagged by Ron Rowland

2 Answers

+2 votes
 
Best answer

I'm not sure how Wordpress is set up, but you can send the first and last name to the WikiTree search form doing something like this:

<form action="https://www.wikitree.com/wiki/Special:SearchPerson" method="POST">
  <input name="wpFirst">
  <input name="wpLast">
  <button>Search</button>
</form>

Where whatever is entered into the input with name "wpFirst" is filled in the first name box, and whatever is entered into the input with the name "wpLast" is filled in the last name box when you press the search button.

by Jamie Nelson G2G6 Pilot (349k points)
selected by Ron Rowland
Excellent!!!  Thank you Jamie.

I thought I was going to have to add code to create the name entry fields, but this does it automatically.

One more request: how do I get it to automatically push the "search" button on WikiTree after it populates the name fields?
0 votes
You probably need a sysops tag added
by Linda Peterson G2G6 Pilot (506k points)
You also may want to review the previous questions that appear at the bottom of this question.
Thanks. Added.

Related questions

0 votes
2 answers
128 views asked Jul 3, 2020 in WikiTree Tech by Veronica Williams G2G6 Pilot (145k points)
+2 votes
3 answers
122 views asked Apr 29, 2020 in WikiTree Tech by Robin Helstrom G2G6 Mach 1 (13.6k points)
+2 votes
2 answers
+5 votes
1 answer
147 views asked Nov 25, 2012 in Genealogy Help by B Chelton G2G6 (8.2k points)
+3 votes
2 answers
126 views asked Jul 4, 2018 in WikiTree Help by Andrew Field G2G6 Mach 2 (26.4k points)
+7 votes
1 answer
133 views asked Jun 29, 2018 in WikiTree Tech by Kerry Larson G2G6 Pilot (150k points)
+2 votes
2 answers
105 views asked Apr 23, 2017 in WikiTree Tech by Marie Svedahl G2G6 Mach 1 (13.9k points)
+6 votes
1 answer
+11 votes
2 answers

WikiTree  ~  About  ~  Help Help  ~  Search Person Search  ~  Surname:

disclaimer - terms - copyright

...