Support » Plugin: Pods - Custom Content Types and Fields » Collapsible & Expandable Content

  • Resolved senyoraangelica


    I tried several plugins like Collapse-O-Matic but it won’t work with Pods. The collapse shortcodes does nothing but show on my posts.

    I want to make a list of books with specific custom fields (e.g. description, genres, etc.) of each book inside a collapsible and expandable button. Is there a plugin that works with pods?

    How about this method?
    Is this compatible with pods? I’m fairly new to coding so I’d like to ask for advice on how I should approach this. I would highly appreciate anyone’s help. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Scott Kingsley Clark


    The great thing about Pods and using Post Types is that you can do just about anything you want with your content in your single.php or single-pod_name.php file in your theme. You can use any script you’d like, and that one should work well.

    For the Collapse-O-Matic shortcode issue, what field did you put it in and how were you outputting it?

    I used Collapse-O-Matic with Pods by using
    <?php echo do_shortcode('-----'); ?>
    However, I couldn’t manage to get the internal collapse button working.
    I have a list of, say, 10 pod items on my page that I called using the pods shortcode. Each pod item is using the same pods template.
    Collapse-O-Matic requires that each one of them have a different id="---" How do I do this? I tried using magic tags and php echo on the id=”{@customfield}” but I suppose that doesn’t work. Or maybe my php echo code was wrong? Can you help me?

    Plugin Author Scott Kingsley Clark


    Can you paste your full code at a place like so I can see what exactly might be going on here?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Collapsible & Expandable Content’ is closed to new replies.