How do I search WikiTree from my Wordpress site?

+1 vote
218 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 2 (24.7k points)
retagged by Ron Rowland

2 Answers

+4 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 (648k 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?
+2 votes
You probably need a sysops tag added
by Linda Peterson G2G6 Pilot (802k points)
You also may want to review the previous questions that appear at the bottom of this question.
Thanks. Added.

Related questions

+2 votes
2 answers
247 views asked Jul 3, 2020 in WikiTree Tech by Veronica Williams G2G6 Pilot (218k points)
+4 votes
3 answers
216 views asked Apr 29, 2020 in WikiTree Tech by Finnias Helstrom G2G6 Mach 1 (19.4k points)
+4 votes
2 answers
+6 votes
1 answer
+10 votes
2 answers
+4 votes
2 answers
197 views asked Jul 4, 2018 in WikiTree Help by Andrew Field G2G6 Mach 3 (37.3k points)
+4 votes
0 answers
127 views asked Nov 22, 2017 in WikiTree Tech by Geoff Masters G2G6 Mach 1 (16.1k points)
+8 votes
0 answers
148 views asked Oct 10, 2017 in WikiTree Tech by Jim Baur G2G6 Mach 2 (21.4k points)
+3 votes
1 answer

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

disclaimer - terms - copyright

...