Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mark Wilkinson

    (@wpmarkuk)

    Currently there isn’t a shortcode to use. This would have to be multiple shortcodes however as there is many different views for each job such as archive and single.

    Is the site where you are having problems live?

    Thread Starter adiuvo

    (@adiuvo)

    Link

    The theme is using Visual Composer.

    Plugin Author Mark Wilkinson

    (@wpmarkuk)

    It looks to me as though you have set the wrong page in your settings. The apply page should be set to single page. This will contain your application form.

    Thread Starter adiuvo

    (@adiuvo)

    No it’s the right page, but all the content elements your seeing on this page come from Visual Composer.

    But the plugin is applying the archive after the content hook right? I think the 4 block elements also hook into the content hook. That’s why it’s displaying four times.

    Plugin Author Mark Wilkinson

    (@wpmarkuk)

    The error itself is not a problem. It is only there because there is not Job ID passed to the page. This is generated on the apply now button so the application knows which job is being applied for.

    The form itself is added to the end of the_content on the page assigned in the settings. You can see the code that does this here:

    https://github.com/wpmark/wpbroadbean/blob/master/functions/application-form.php#L118

    If the page ID of the current page does not match the page ID of the page chosen in settings as the apply page then the filter does run and returns the un-modified content.

    https://github.com/wpmark/wpbroadbean/blob/master/functions/application-form.php#L15

    Therefore I would check how the Visual Composer plugin/theme is adding its content.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Is there a shortcode’ is closed to new replies.