Title: Use another shortcode as attribute
Last modified: August 22, 2016

---

# Use another shortcode as attribute

 *  Resolved [pellejacobs](https://wordpress.org/support/users/pellejacobs/)
 * (@pellejacobs)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/use-another-shortcode-as-attribute/)
 * Hi there, I really love your plugin.
    However, I would like to use it in combination
   with the Custom Content Shortcode plugin, and use a shortcode as the attribute
   for the accordion shortcode. So I would get something like:
 *     ```
       [accordion clicktoclose="true"]
       [accordion-item id="item-1" title=[content type="post" name="my-blog-post" field="title"]]
       This is some unimportant content
       [/accordion-item]
       [/accordion]
       ```
   
 * Is this somehow possible?
 * [https://wordpress.org/plugins/accordion-shortcodes/](https://wordpress.org/plugins/accordion-shortcodes/)

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

 *  Plugin Author [philbuchanan](https://wordpress.org/support/users/philbuchanan/)
 * (@philbuchanan)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/use-another-shortcode-as-attribute/#post-5733431)
 * As far as I know that is not technically possible in WordPress.
 *  [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * (@miyarakira)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/use-another-shortcode-as-attribute/#post-5733607)
 * There is a feature called “field tags” in Custom Content Shortcode, which you
   can use to pass a field value as shortcode attribute.
 *     ```
       [loop type="post" name="my-blog-post"]
         [accordion clicktoclose="true"]
           [accordion-item id="item-1" title="{TITLE}"]
             ..
           [/accordion-item]
         [/accordion]
       [/loop]
       ```
   
 *  Thread Starter [pellejacobs](https://wordpress.org/support/users/pellejacobs/)
 * (@pellejacobs)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/use-another-shortcode-as-attribute/#post-5733617)
 * Thank you so much!
    There seems to be so much functionality in this plugin, but
   I just can’t find it. Is there a comprehensive manual or a larger set with examples,
   beside the one installed in the plugin? That would be so nice! I just spend so
   much time searching stuff out. -which is also nice of course 🙂
 *  [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * (@miyarakira)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/use-another-shortcode-as-attribute/#post-5733623)
 * It’s true, the reference pages have a lot of room for improvement – (almost) 
   all plugin features are documented there, but it’s not easy to find. I’m working
   on a simple site to host a better documentation with more examples.

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

The topic ‘Use another shortcode as attribute’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/accordion-shortcodes.svg)
 * [Accordion Shortcodes](https://wordpress.org/plugins/accordion-shortcodes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accordion-shortcodes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accordion-shortcodes/)
 * [Active Topics](https://wordpress.org/support/plugin/accordion-shortcodes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accordion-shortcodes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accordion-shortcodes/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/use-another-shortcode-as-attribute/#post-5733623)
 * Status: resolved