• Resolved pellejacobs

    (@pellejacobs)


    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://ww.wp.xz.cn/plugins/accordion-shortcodes/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author philbuchanan

    (@philbuchanan)

    As far as I know that is not technically possible in WordPress.

    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

    (@pellejacobs)

    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 🙂

    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.