Hi,
I needed a help, is it possible to get the Title of the referrer post to my online form by
wp_get_referer() or wp_get_original_referer() or any other method?
Thanks
Hello and thank you for contacting the Toolset support.
I am not sure to understand your question. Can you elaborate more on what you are trying to implement?
Hi Jamal,
Thanks for replying.
Yeah sure, I try to explain in detail.
Now I created a form in my local host with CRED. It went out nice. Added that form to a 'Page'
Then I created a custom posy type called 'Hotels'.
Now, created a few hotels to it.
I added that review page link to each hotel.
Now I wanted the 'Name of the Hotel' to appear at the top of the 'review' page , from which the visitor has been referred to the review page.
I was searching, I got this two functions.
I hope, I explained it in detail this time.
Thanks.
I think that we can get the referer using custom code from either wp_get_referer() or wp_get_original_referer() functions.
But, I believe there would be a simpler way. Check my reply in a similar ticket from last week here https://toolset.com/forums/topic/post-form-within-a-page-need-link/#post-1894869
There is also a test site that you can check there.
Let me know if you have another opinion or further questions.