Title: Shortcode Collapsing Archives
Last modified: February 9, 2025

---

# Shortcode Collapsing Archives

 *  [aaa1898](https://wordpress.org/support/users/aaa1898/)
 * (@aaa1898)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/shortcode-collapsing-archives/)
 * Hi all,
   is there a shortcode to get/include a collapsing archive?S. th. like [
   collapsing_archive]?Alternatively I have also difficulties to find a link/handle
   in the dashbord with “Add widget”
 * Can anybody help?
   Regards…
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fshortcode-collapsing-archives%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [aaa1898](https://wordpress.org/support/users/aaa1898/)
 * (@aaa1898)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/shortcode-collapsing-archives/#post-18294800)
 * What my problem exactly is:
 * I have the newest version of wordpress together with TwentTwentyFive.
   I don’t
   find to include the collapsing archioves into my page.I don’t find the possibility
   to integrate neither “widgets” nor a shortcode.
 * My page shows the following code
 *     ```wp-block-code
       <!-- wp:template-part {"slug":"header","theme":"twentytwentyfive"} /--><!-- wp:group {"tagName":"main","style":{"spacing":{"margin":{"top":"var:preset|spacing|60"}}},"layout":{"type":"constrained"}} --><main class="wp-block-group" style="margin-top:var(--wp--preset--spacing--60)"><!-- wp:heading {"textAlign":"left","level":1} --><h1 class="wp-block-heading has-text-align-left">Blog</h1><!-- /wp:heading --><!-- wp:query {"queryId":0,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[]},"align":"full","layout":{"type":"default"}} -->
       ```
   
 * What can I do to bring the collapsing archives into it?
   Neither sth like [collapsing_archives]
   works nor
 *     ```wp-block-code
       <ul>     <?php wp_get_archives(); ?></ul>
       ```
   
 *  Plugin Author [robfelty](https://wordpress.org/support/users/robfelty/)
 * (@robfelty)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/shortcode-collapsing-archives/#post-18450774)
 * Collapsing Archives now uses Gutenberg blocks, so you should be able to add it
   by just adding a block in the site editor wherever you want it.

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

The topic ‘Shortcode Collapsing Archives’ is closed to new replies.

 * ![](https://ps.w.org/collapsing-archives/assets/icon-256x256.gif?rev=2550328)
 * [Collapsing Archives](https://wordpress.org/plugins/collapsing-archives/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/collapsing-archives/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/collapsing-archives/)
 * [Active Topics](https://wordpress.org/support/plugin/collapsing-archives/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/collapsing-archives/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/collapsing-archives/reviews/)

## Tags

 * [inline code](https://wordpress.org/support/topic-tag/inline-code/)
 * [Short Code](https://wordpress.org/support/topic-tag/short-code/)

 * 2 replies
 * 2 participants
 * Last reply from: [robfelty](https://wordpress.org/support/users/robfelty/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/shortcode-collapsing-archives/#post-18450774)
 * Status: not resolved