The better way to do this is using javascript/jquery.
Use either javascript webstorage api or jquery ajax $.post.
Webstorage api will be good for this.
Here how you can do it.
$('body').on('click', '.button.small', function(){
var index = $(this).parents('table').index('table');
var cur_workshop = $(this).parents('.innercontent').find('h3').eq(index).text();
localStorage.setItem('workshop', cur_workshop);
});
Place above script on http://yft.ac/upcoming-workshops/ this page template.
Then call the below script on http://yft.ac/contact-us/ this page template, to get the current workshop name.
localStorage.getItem('workshop');
Related Posts:
- Get selected values from checkboxes and radio buttons via Gravity Forms gform_after_submission hook [closed]
- How can ι create my own (custom) WordPress table/list?
- Gravity Forms returns to odd position
- Plugin for visitors to edit content without logging in? [closed]
- Is it possible to set different payment gateway on each Gravity Forms form? [closed]
- How do I show data from gravity forms in my template? [closed]
- Contact form 7 select box different value-text than content-text in option [closed]
- Some way to Flush or Overwrite all Imported Content in a Site for a Fresh Import – How?
- shortcode doesn’t work
- Is there a way to share content amongst wordpress sites
- Template plugin for blog posts? [closed]
- Should I global $wpdb outside of any of my plugin’s functions scope?
- Is there any good tutorial to write custom login, registration and password recovery forms? [closed]
- WordPress plugin form not saving data
- Capitalize All Titles and Headlines in Chicago Style
- Add form fields dynamically on button click
- Next and/or previous post content
- How to trigger $_GET request within admin plugin page?
- Retrieving a Value from a wp-database
- Custom CSS for plugin form
- Form doesn’t submit on second submit call
- WP plugins for building a database?
- Custom form action to handle data inside a plugin
- Can I use a plugin for a singular page on my website?
- Image upload and other options in the same plugin settings form?
- Create digital-virtual-downloadable WooCommerce products from the frontend using Gravity Forms? [closed]
- Creating an online questionnaire form – by Importing the questions from a spreadsheet?
- Using a custom plugin to capture input data via Ajax and PHP
- WordPress plugin output formatting
- Submit page limited in time to upload image
- Ajax fail and get 504 error
- Migrating hosts, 500 errors and plugin issues
- How to insert HTML/JavaScript form into WordPress page? [closed]
- Create a table with wordpress plugin boilerplate
- Custom table naming/access convention for multisite: $table_prefix vs base_prefix or other?
- How to fetch form data and show it to my page?
- Submit custom form from post content and execute in plugin
- Char limit on custom blog-post form? [closed]
- Can I create a table on my DB without creating a plugin?
- Is there a way to embed a Google Docs form in a page without using plugins?
- easy steps to make front end form without plugin
- Form that generates an ID for the customer
- populating a form field with output from a custom plugin function
- Submit Form data to another page via Ajax (WordPress Way)
- Editing a text file from plugin menu
- Insert Message before content of after title
- Ajax Plugin Not Echoing Response
- How to handle forms from sidebar widgets – Processing $_POST variables using get_field_name()
- Add Content to Content()
- plugin wraps the entire content
- Creating a form and displaying entry data as a table
- Storing The Data Collected by Ninja Forms into Another (custom) Database [closed]
- add_meta_box creating default form field types
- Form Plugin for Api Requests which is used via Shortcode
- Echo out element to another page.
- Select Form Element Not Saving from Plugin Options
- Can’t create tables with my plugin
- Using AJAX to run SQL statement and populate dropdown
- Is there a way to keep youtube videos from displaying on home page, and display only on single posts?
- Looking for a simple checkout plugin [closed]
- Redirect plugin after form submit or show errors
- get wpforms ID value from ACF text field
- how to resubmit a submitted form with gravity forms plugin
- User loggedin as Subscriber form not sending
- Some error in mysql script ? Can’t working to create table
- How to create a form where you can select multiple recipients, based on a list of website users?
- WordPress search input in database, to edit information via form and update the database
- create pages automatically and dynamically in wordPress
- $wpdb->delete not working for me
- WPForms Custom Redirect not working
- Displaying different content depending on variable
- I want to schedule email (date, time is in database->table) wp_schedule_event() not working
- Tool to highlight text in WordPress page and provide additional text on hover
- Store GravityForm data in phpmyadmin (mysql)
- Why is my form going to frontend on html form submission present on the php files inside my custom plugin?
- How to submit custom form data using ajax to HubSpot form?
- Copying content from my other websites
- Page takes on two different formats
- get/show Last ID
- Building a Article Library within WP?
- How can I automatically send an email with an excel file containing submissions for a form rather than an email per submission?
- Why doesn’t a form need an ‘action’ with a plugin that uses the post data?
- $POST variable is empty in receiving php add-on function but can be seen by jscript function
- Include plugin form in the home page
- Saving custom form fields
- Linking Plugin Files to WP
- Adding a Filter to Sidbar Login Plugin to Change Login Button Lable
- How to create custom content on custom page from plugin?
- GravityForms to Salesforce API, problem with people who leave out company [closed]
- Capturing POST data
- Simple Data Table Update and Page Integration
- is ther a plugin that will hide/show content for a scheduled period of time? [closed]
- Single dash converted to double dash
- Undefined variable _POST
- Creating a custom page & output on a Plugin
- How to prevent page load on form submission
- How to develop an extension for a simple form post and post back? [closed]
- Redirecting to page on form submit – Revue plugin
- WP Donation Form with custom payment API
- How to create specific wordpress Table