Title: remove duplicate course
Last modified: October 11, 2022

---

# remove duplicate course

 *  Resolved [manudrago](https://wordpress.org/support/users/manudrago/)
 * (@manudrago)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/remove-duplicate-course/)
 * In my json file I have the same course twice in the same day and I want to remove
   the second one.
    Example: Jamf 200 – 24 Oct 2022 – 27 Oct 2022 – Central Standard
   Time – seats 3 Jamf 200 – 24 Oct 2022 – 27 Oct 2022 – Central Standard Time –
   seats full here my code, how do I do that
 *     ```
       <table>
       <tbody>
       [jsoncontentimporter url="https://emanueldraghetti.com/jamf.json" oneofthesewordsmustbein="JAMF 200" oneofthesewordsmustbeindepth=2 numberofdisplayeditems=50]
       <tr>
       <td>{course}</td>
       <td><strong>{startDate} - {endDate}</strong></td>
       <td class="{timezone}">{timezone}</td>
       <td class="{availableCapacity}-hide"><span style="display: none;">{availableCapacity}</span><a class="btntable" href="https://www.jamf-training-influential.com/contact/">Book Now</a></td>
       </tr>
       [/jsoncontentimporter]</tbody>
       </table>
       ```
   

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

 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/remove-duplicate-course/#post-16091335)
 * Hi,
 * try this with oneofthesewordsmustnotbein=”FULL” oneofthesewordsmustnotbeindepth
   =2
 *     ```
       <table>
       <tbody>
       [jsoncontentimporter url="https://emanueldraghetti.com/jamf.json" oneofthesewordsmustbein="JAMF 200" oneofthesewordsmustbeindepth=2 oneofthesewordsmustnotbein="FULL" oneofthesewordsmustnotbeindepth=2 numberofdisplayeditems=50]
       <tr>
       <td>{course}</td>
       <td><strong>{startDate} - {endDate}</strong></td>
       <td class="{timezone}">{timezone}</td>
       <td class="{availableCapacity}-hide">
       availableCapacity: {availableCapacity}
   
       <span style="display: none;">{availableCapacity}</span><a class="btntable" href="https://www.jamf-training-influential.com/contact/">Book Now</a></td>
       </tr>
       [/jsoncontentimporter]</tbody>
       </table>
       ```
   
 * Bernhard
 *  Thread Starter [manudrago](https://wordpress.org/support/users/manudrago/)
 * (@manudrago)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/remove-duplicate-course/#post-16091632)
 * Hi, thanks for your answer.
    I don’t have to remove it because it’s full. I just
   need to keep one course for each date available (it doesn’t matter if it’s full
   or not), perhaps the one with more seats available example: Jamf 200 – 24 Oct
   2022 – 27 Oct 2022 – Central Standard Time – seats 3 Jamf 200 – 24 Oct 2022 –
   27 Oct 2022 – America Standard Time – seats 6
 * in this case I have to show only the second one, but if is not possible, the 
   first one is fine as well.
    -  This reply was modified 3 years, 8 months ago by [manudrago](https://wordpress.org/support/users/manudrago/).
 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/remove-duplicate-course/#post-16093086)
 * Hi,
 * you either change the JSON or you need the pro JCI-plugin.
    Questions on the 
   pro at [https://jsoncontentimporter.freshdesk.com/widgets/feedback_widget/new?searchArea=no](https://jsoncontentimporter.freshdesk.com/widgets/feedback_widget/new?searchArea=no)
   only.
 * Best
    Bernhard

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

The topic ‘remove duplicate course’ is closed to new replies.

 * ![](https://ps.w.org/json-content-importer/assets/icon-256x256.png?rev=3464653)
 * [Get Use APIs - JSON Content Importer](https://wordpress.org/plugins/json-content-importer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-content-importer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-content-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/json-content-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-content-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-content-importer/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [berkux](https://wordpress.org/support/users/berkux/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/remove-duplicate-course/#post-16093086)
 * Status: resolved