post->post_name returning wrong page
-
In the documentation here
https://xnau.com/multiple-databases-with-participants-database/
it says thatThe key to this is a field that differentiates the records. For this, we create a field named “type” that will indicate whether the record is for a team member or a parent. Make this field a hidden field and set the default value to post->post_name. What this will do is record the name of the page the signup form was on. With that, you’ll be able to tell which form was used to create the record.
I’ve done this: created a hidden type field with default of post->post_name and I have this field on Page 1 of both instances of my 5 page form. However what gets returned in List Participants is the slug of Page 2 (wordpress child page) rather than the slug (or preferrably) Title of Page 1.
Please advise what other info you need to suggest a solution.
thankyouThe page I need help with: [log in to see the link]
The topic ‘post->post_name returning wrong page’ is closed to new replies.