• Resolved snippet24

    (@snippet24)


    I’m trying to use the plugin as if each vualue in the first row were a separated post with two custom field. Where the first column could be a “list item” and the second column “the content” for that same item. I know it can be done via creating a post category with two custom field values, but I want to
    do it with an easier to fill excel like table, which is exactly what this plugin does.
    How can I do it? if it can be done.

    Here’s the code I have

    
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
            <?php the_content(); ?>
    
            
    
            <input type="text" id="myInput" onkeyup="myFunction()" placeholder="Search for names.." title="Type in a name">
    
            <ul id="myUL">
              <li><a href="#">Item 1</a></li>
              <li><a class="collapsible">Open section 1</a>
            <div class="content">
              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
            </div></li>      
    	<li><a class="collapsible">Item 2</a>
            <div class="content">
              <p>ariana Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
            </div></li>
           
            </ul>
           
            <?php endwhile; 
            wp_pagenavi( array( 'type' => 'multipart' ) );
            endif; ?>
    • This topic was modified 6 years, 9 months ago by snippet24.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to retrieve values for this list with collapsible layout?’ is closed to new replies.