• Resolved arjanoskam

    (@arjanoskam)


    Hello,

    I have the post type “Vacancies” and I want some custom HTML always to be there.

    I want to have a button that says: “Apply for job” and then in the URL use a custom field which is set inside the custom post type. So each job has a “Job Title” or “Function” I want to have an URL with vacancyform?function=Technician

    Would it be better to set in a template? Or as a block in page builder?

    And how would this work?

Viewing 1 replies (of 1 total)
  • Plugin Author TotalPress.org

    (@totalpressorg)

    Hi @arjanoskam, thanks for using this plugin 🙂

    If I understand correctly, you would like to have a button / link in every single custom post type that links to a form with a preset value in the form.

    If you use the “Contact Form 7” plugin, you could create a (read-only) field prefilled with a get parameter from the url.

    If you create a form with that plugin that contains a “name-of-form-field-to-prefill” field, and insert it into the page with slug “slug-of-page-with-cf7”, you can set the value in the “name-of-form-field-to-prefill” field via the url with a custom post type field “field-from-get-value”.

    In the custom post type template, you could add a link like this:

    <a href="https://yourdomain.xxx/slug-of-page-with-cf7/?name-of-form-field-to-prefill=[cpt-field key='field-from-get-value']">Apply for job</a>

    If you find the plugin useful and want to support the project:
    – Make a donation (like a coffee);
    – Get the PRO version;
    – Leave a 5 stars review;

Viewing 1 replies (of 1 total)

The topic ‘Add button on every page’ is closed to new replies.