• Resolved dnweb

    (@dnweb)


    I’m trying to insert an Ajax Availability Calendar into the job submit process. The calendar works by attaching to the job ID and pushing/pulling the necessary data to db tables.

    The calendar is working when a job is added/edited through admin, or edited front-end, and I believe this is because, respectively, wp-admin assigns a post/job_id on ‘Add New’ page load, and the job already has a $job_id for the calendar to attach to, which is pulled from the URL (/?action=edit&job_id=###)

    I seem to be having difficulty in pulling in the $job_id on a fresh front-end job submit; is the $job_id only generated when the ‘Submit Job’ button is clicked? If so, is there anyway I can query which job/post ID will be generated next?

    • This topic was modified 7 years, 1 month ago by dnweb.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘AJAX: Get Job ID before Job Submitted on Frontend’ is closed to new replies.