Skip Navigation

[Resolved] Is it possible to get Title of the Referrer post by wp_get_referer()

This support ticket is created 4 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Jamal 4 years, 1 month ago.

Assisted by: Jamal.

Author
Posts
#1898219

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

#1898769

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?

#1898849

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.

#1899337

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.