Title: adding shordcode
Last modified: August 31, 2016

---

# adding shordcode

 *  Resolved [GregorH](https://wordpress.org/support/users/gregorh/)
 * (@gregorh)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/adding-shordcode/)
 * WP Install: **4.4.1**
    Job Manager Installed: **7.25** Website URL: [http://warnath-industrieservice.com/stellenangebote/engineering/](http://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)

 *  Thread Starter [GregorH](https://wordpress.org/support/users/gregorh/)
 * (@gregorh)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/adding-shordcode/#post-6961915)
 * Hello I think I found it:
 * **. do_shortcode( ‘[job_field8]’ ) .**
 * does the job!!!
 * Thanks
    Gregor
 *  Plugin Author [Thomas Townsend](https://wordpress.org/support/users/smb-dev/)
 * (@smb-dev)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/adding-shordcode/#post-6961945)
 * Glad you found a resolution to your issue. Thanks for posting / sharing that 
   with others.

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

The topic ‘adding shordcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/job-manager_2792c3.svg)
 * [Job Manager](https://wordpress.org/plugins/job-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/job-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/job-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/job-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/job-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/job-manager/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Thomas Townsend](https://wordpress.org/support/users/smb-dev/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/adding-shordcode/#post-6961945)
 * Status: resolved