1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Display rows for each instance of custom post type

Discussion in 'Free Divi Community Forum' started by chris r, Oct 2, 2019.

  1. chris r

    chris r Member

    Hi,

    We have a custom post type of 'Classes' and will have anywhere from 5-15 active classes at a given time, though this will be a variable number as classes are added and removed.

    What we'd like to do on a Landing page is show the title and description for each active Class with rows of up to 3 sorted alphabetically.

    So the columns would look like:
    [classA] [classB] [classC]
    [classD] [classE] [classF]
    [classG]

    I've written a function to display the custom post type info for 1 column block, but this shortcode is called only on each column. It only knows about 1 class. I'm not sure how to display all rows based on how many classes there are. There would need to be some sort of loop? And the layout of the columns would have to be in a code module as opposed to the Divi front end?

    Just trying to figure out an approach on this. Thanks for any insight...
     
    1. PRO MEMBER PERKS Custom Color Scheme + Premade Layouts - A perfect combination to boost productivity:Try Now