Skip Navigation

[Resolved] Send page title to next page

This support ticket is created 3 years, 11 months 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by avansisI-2 3 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#1972521

We come from here: https://toolset.com/forums/topic/send-author-data-to-next-page/

We set up the form to receive the data with url parameter.
But now i need pass page title. How can i send the page title to the form?

Thank u

#1972637

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Avansis,

Thank you for getting in touch.

This can actually be done by writing another shortcode to get the title from the URL.

function cust_get_post_title ) {  
    if(isset($_GET['contact_id'])){
     $post_id = $_GET['contact_id'];
    $post = get_post($post_id);
     return $post->post_title;
    }
}
add_shortcode( 'cust_get_post_title', 'cust_get_post_title' );

Then just use this shortcode below [cust_get_post_title]

Thanks,
Shane

#1973257

Thank you Shane

Now its working

Thank you for your help.

#1973269

My issue is resolved now. Thank you!