The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Pods - Custom Content Types and Fields
[resolved] Collapsible & Expandable Content (4 posts)

  1. senyoraangelica
    Posted 3 years ago #

    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!


  2. Scott Kingsley Clark
    Plugin Author

    Posted 3 years ago #

    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?

  3. senyoraangelica
    Posted 3 years ago #

    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?

  4. Scott Kingsley Clark
    Plugin Author

    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic