• Resolved GregorH

    (@gregorh)


    WP Install: 4.4.1
    Job Manager Installed: 7.25
    Website URL: https://warnath-industrieservice.com/stellenangebote/engineering/

    Hello Thomas, I need help!!

    I use job Manager for a while but since one of the latest WP updates I have a problem.
    I would not call it a bug of your excellent plugin but it is buggin me ?? and you might be able to help me solve it.

    The Problem:
    WP nowadays does not allow Shortcodes inside href tags for security reasons, which breaks a lot of plugins. Im my case, I use the shortcode [job_id] inside a href tag to open/close a TAB containing the job details and link to the form.

    The only way to get around this problem, is to write a new shortcode to your plugin that creates the complete link, which I did. I added a new shortcode to frontend-shortcodes.php and it works fine except one last problem.

    I need to show the date of the listing which is written in job_field8.

    My question for you:
    How do I get the value of job_field8 inside a shordcode?

    I tried some ways but never get any output to show like:
    .$jobman_shortcode_job->job_field8.

    This is what I have so far:

    case 'job_id_tab':
    
    			return "<a href='#".$jobman_shortcode_job->ID."' class='accordion-toggle' data-toggle='collapse' data-parent='#pacc5050a3cb6efc6'>".$jobman_shortcode_job->post_title." - Ausschreibung vom:  ".$jobman_shortcode_job->job_field8."</a></div>
                <div id='".$jobman_shortcode_job->ID."' class='accordion-content collapse'> <div class='accordion-inner'>";

    thanks for your help!
    Gregor

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘adding shordcode’ is closed to new replies.