Title: Include shortcode in shortcode?
Last modified: June 6, 2021

---

# Include shortcode in shortcode?

 *  Resolved [simon](https://wordpress.org/support/users/simonp820/)
 * (@simonp820)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/include-shortcode-in-shortcode/)
 * I need to be able to append the current date to an API request. I can get that
   using the Current Date plugin but JSON Content Importer doesn’t seem to like 
   there being another shortcode inside its shortcode:
 *     ```
       [jsoncontentimporter url=https://xxxxxxxxx/json?lat=53.06859256033253&lng=-4.076224835463193&date=[current_date format='Y-m-d'] basenode=results]
       sunrise={sunrise} /// sunset={sunset}
       [/jsoncontentimporter]
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Author [berkux](https://wordpress.org/support/users/berkux/)
 * (@berkux)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/include-shortcode-in-shortcode/#post-14530193)
 * Hi simon,
 * with the free plugin this is not possible out of the box.
    You can install [https://wordpress.org/plugins/insert-php-code-snippet/](https://wordpress.org/plugins/insert-php-code-snippet/)
   and have
 *     ```
       $t ='[jsoncontentimporter url=http://....?...='.date("U").']whatever[/jsoncontentimporter]';
       echo do_shortcode($t);
       ```
   
 * as PHP snippet.
 * Bernhard

Viewing 1 replies (of 1 total)

The topic ‘Include shortcode in shortcode?’ 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/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 1 reply
 * 2 participants
 * Last reply from: [berkux](https://wordpress.org/support/users/berkux/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/include-shortcode-in-shortcode/#post-14530193)
 * Status: resolved