• Resolved Demesthones

    (@demesthones)


    For both the job details and the company details it is showing the actual code for the input field rather than field itself, minus the front part of the input tag.

    type="text"
    	class="input-text"
    	name="<?php echo esc_attr( isset( $field['name'] ) ? $field['name'] : $key ); ?>"
    	id="<?php echo esc_attr( $key ); ?>"
    	placeholder="<?php echo esc_attr( $field['placeholder'] ); ?>"
    	value="<?php echo isset( $field['value'] ) ? esc_attr( $field['value'] ) : ''; ?>"
    	maxlength="<?php echo ! empty( $field['maxlength'] ) ? $field['maxlength'] : ''; ?>"
    	<?php if ( ! empty( $field['required'] ) ) echo 'required'; ?>
    	/>

    Above is what displays on the webpage.

    I saw a few threads most likely related to this issue saying it’s an issue with the theme but all of the reply links showing the solution are not working.

    http://www.healthdelivery.org/post-a-job/

    https://ww.wp.xz.cn/plugins/wp-job-manager/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Mike Jolley

    (@mikejolley)

    Yes it’s the theme – the ones I’ve investigated have been running custom shortcode handlers on the_content. I’ve not come across cruz3 theme before though.

    Thread Starter Demesthones

    (@demesthones)

    Can you think of anywhere specific I should look? I just took over most of our web stuff and I’m mostly learning as I go.

    Plugin Author Mike Jolley

    (@mikejolley)

    Start in the theme functions.php, but they may have a framework. Look for any filters that hook into ‘the_content’. (if you search for the_content you may find them)

    Or upload the theme somewhere for me to look at.

    Thread Starter Demesthones

    (@demesthones)

    I’ll take a look, thanks!

    Thread Starter Demesthones

    (@demesthones)

    I found the offending line

    add_filter('the_content', 'my_formatter', 99);

    But when I remove it, it pretty much breaks the rest of the site haha! Is there any way I can get around this? If not I’ll probably just have them submit jobs through the back end.

    Plugin Author Mike Jolley

    (@mikejolley)

    Report it to the author 🙂 Really, they should not be ‘formatting’ content that late as its bound to break html from shortcodes.

    Thread Starter Demesthones

    (@demesthones)

    Will do, thanks for all your help 🙂

    Plugin Author Mike Jolley

    (@mikejolley)

    Let me know how it goes. In the meantime I’ll see if we can ‘workaround’ this any better our side, but ultimately a fix is needed in the theme as it will affect more than just my plugin.

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

The topic ‘Frontend Submit Form input field issues’ is closed to new replies.