Title: Expand Upon ID
Last modified: October 4, 2017

---

# Expand Upon ID

 *  Resolved [csvacina](https://wordpress.org/support/users/csvacina/)
 * (@csvacina)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/expand-upon-id/)
 * I’m using the collapse-o-matic plugin on our FAQ page. I added ID tags to my 
   shortcode so my product team can link to individual FAQ questions. What code 
   do I need to add so that it automatically expands if the id is part of the URL?
 * For example: [https://www.myURL.com/app/faqs/#2](https://www.myURL.com/app/faqs/#2)
   takes you to the second question but the user still needs to expand the question.
 * Here is an example the shortcode I have currently: [expand title=”This is a question?”
   id=”2″ rel=”-highlander”]This is an answer.[/expand]
 * Thanks for your help!

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

 *  Plugin Author [twinpictures](https://wordpress.org/support/users/twinpictures/)
 * (@twinpictures)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/expand-upon-id/#post-9556296)
 * the way you have it setup should work.
    like this: [https://plugins.twinpictures.de/plugins/collapse-o-matic/documentation/#kraftwerk](https://plugins.twinpictures.de/plugins/collapse-o-matic/documentation/#kraftwerk)
   Are there any js errors on your site? Can you share a link to the page in question?
 *  Thread Starter [csvacina](https://wordpress.org/support/users/csvacina/)
 * (@csvacina)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/expand-upon-id/#post-9574571)
 * Hi – I figured it out. When I switched the code to the following it worked: [
   expand title=”This is a question?” id=”A” rel=”-highlander”]This is an answer.[/
   expand]
 * Having the id set to a numerical value without an alphabetical value attached
   to it results in an error.
 *  Plugin Author [twinpictures](https://wordpress.org/support/users/twinpictures/)
 * (@twinpictures)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/expand-upon-id/#post-9574584)
 * Interesting…
    Glad to hear you got it working, and thank you greatly for sharing
   the solution. We will add this info-nugget to the documentation. Issue marked
   as resolved.

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

The topic ‘Expand Upon ID’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jquery-collapse-o-matic_fffeff.svg)
 * [Collapse-O-Matic](https://wordpress.org/plugins/jquery-collapse-o-matic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jquery-collapse-o-matic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jquery-collapse-o-matic/)
 * [Active Topics](https://wordpress.org/support/plugin/jquery-collapse-o-matic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jquery-collapse-o-matic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jquery-collapse-o-matic/reviews/)

## Tags

 * [anchor](https://wordpress.org/support/topic-tag/anchor/)
 * [id](https://wordpress.org/support/topic-tag/id/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * 3 replies
 * 2 participants
 * Last reply from: [twinpictures](https://wordpress.org/support/users/twinpictures/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/expand-upon-id/#post-9574584)
 * Status: resolved