Title: Coding Panda's Replies | WordPress.org

---

# Coding Panda

  [  ](https://wordpress.org/support/users/codingpanda/)

 *   [Profile](https://wordpress.org/support/users/codingpanda/)
 *   [Topics Started](https://wordpress.org/support/users/codingpanda/topics/)
 *   [Replies Created](https://wordpress.org/support/users/codingpanda/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/codingpanda/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/codingpanda/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/codingpanda/engagements/)
 *   [Favorites](https://wordpress.org/support/users/codingpanda/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 165 total)

1 [2](https://wordpress.org/support/users/codingpanda/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/codingpanda/replies/page/3/?output_format=md)…
[9](https://wordpress.org/support/users/codingpanda/replies/page/9/?output_format=md)
[10](https://wordpress.org/support/users/codingpanda/replies/page/10/?output_format=md)
[11](https://wordpress.org/support/users/codingpanda/replies/page/11/?output_format=md)
[→](https://wordpress.org/support/users/codingpanda/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] Unknown column](https://wordpress.org/support/topic/unknown-column-2/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/unknown-column-2/#post-17108340)
 * [@mullerroland](https://wordpress.org/support/users/mullerroland/)
 * It looks like the repeater field’s columns are not available. Is it possible 
   to export the related Pods for me to investigate?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] Repeater only or mix?](https://wordpress.org/support/topic/repeater-only-or-mix/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/repeater-only-or-mix/#post-16908823)
 * Yes, it is possible. Please follow the videos. The videos are for an old version
   of Pods, but the principle still applies.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] Supported Gutenberg Blocks plugins](https://wordpress.org/support/topic/supported-gutenberg-blocks-plugins/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/supported-gutenberg-blocks-plugins/#post-16908763)
 * Apologies, due to various data saved in the repeater field, there is currently
   no frontend display available.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] Bricks Builder compatibility](https://wordpress.org/support/topic/bricks-builder-compatibility-2/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/bricks-builder-compatibility-2/page/2/#post-16830302)
 * OK. Thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] Bricks Builder compatibility](https://wordpress.org/support/topic/bricks-builder-compatibility-2/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/bricks-builder-compatibility-2/page/2/#post-16830276)
 * 🙂 Brilliant.
 * I will look into it when I am less busy.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] Bricks Builder compatibility](https://wordpress.org/support/topic/bricks-builder-compatibility-2/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/bricks-builder-compatibility-2/page/2/#post-16830237)
 * I noticed a mistake. Please update the function this this:
 *     ```wp-block-code
       function display_book_chapters( $args ){ 
       	if( isset( $args['id'] ) ){
       		$chapters = pods_field( 'book', $args['id'], 'chapter' ); 
       		if( ! empty( $chapters ) ){	
       			foreach( $chapters as $i => $chapter ){
       				echo '<div>';
       				echo $chapter['name'];
       				$pdf_url = wp_get_attachment_url( $chapter['pdf'] );
       				if( $pdf_url ){
       					echo '<a href="' . $pdf_url . '">PDF</a>';
       				}
       				echo '</div>' ;
       			}	
       		}
       	}
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] Bricks Builder compatibility](https://wordpress.org/support/topic/bricks-builder-compatibility-2/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/bricks-builder-compatibility-2/page/2/#post-16830191)
 * Is 336 an ID of a book page?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] Bricks Builder compatibility](https://wordpress.org/support/topic/bricks-builder-compatibility-2/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/bricks-builder-compatibility-2/page/2/#post-16829841)
 * You can update the function to check if the chapters are available.
 *     ```wp-block-code
       function display_book_chapters( $id ){ 
   
       	$chapters = pods_field( 'book', $id, 'chapter' ); 
       	if( ! empty( $chapters ) ){	
       		foreach( $chapters as $i => $chapter ){
       			echo '<div>';
       			echo $chapter['name'];
       			$pdf_url = wp_get_attachment_url( $chapter['pdf'] );
       			if( $pdf_url ){
       				echo '<a href="' . $pdf_url . '">PDF</a>';
       			}
       			echo '</div>' ;
       		}	
       	}
   
       }
       ```
   
 * I think the problem is that {post_id} doesn’t pass in the correct post id into
   the shortcode. You can test it by echoing {post_id} without the shortcode, and
   contact Bricks if necessary.
 * I don’t think $post_id can be used before declaring it. You could try {post_id}.
 * the Repeater is not a post type. It is a field of a Pod which can be a post type.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] Bricks Builder compatibility](https://wordpress.org/support/topic/bricks-builder-compatibility-2/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/bricks-builder-compatibility-2/#post-16827992)
 * Use it in the template: [display_book_chapters id={post_id}]
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] Bricks Builder compatibility](https://wordpress.org/support/topic/bricks-builder-compatibility-2/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/bricks-builder-compatibility-2/#post-16827991)
 * I couldn’t get the correct post_id to pass into the shortcode. You know Bricks,
   would you give it a go? Here is the shortcode:
 *     ```wp-block-code
       function display_book_chapters( $id ){ 
   
       	$chapters = pods_field( 'book', $id, 'chapter' ); 
   
       	foreach( $chapters as $i => $chapter ){
       		echo '<div>';
       		echo $chapter['name'];
       		$pdf_url = wp_get_attachment_url( $chapter['pdf'] );
       		if( $pdf_url ){
       			echo '<a href="' . $pdf_url . '">PDF</a>';
       		}
       		echo '</div>' ;
       	}	
   
       }
   
       add_shortcode( 'display_book_chapters', 'display_book_chapters' );
       ```
   
 * Use it in the template:
 *     ```wp-block-code
       [display_book_chapters id={post_id}]
       ```
   
    -  This reply was modified 2 years, 11 months ago by [Coding Panda](https://wordpress.org/support/users/codingpanda/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] Bricks Builder compatibility](https://wordpress.org/support/topic/bricks-builder-compatibility-2/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/bricks-builder-compatibility-2/#post-16827232)
 * [@dizplay](https://wordpress.org/support/users/dizplay/) I tried to pass the 
   post id into the shortcode, but **{post_id}** always returns 1. Do you know how
   to get the current page ID?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] Bricks Builder compatibility](https://wordpress.org/support/topic/bricks-builder-compatibility-2/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/bricks-builder-compatibility-2/#post-16827053)
 * Thanks for the detailed instructions. Can it be a shortcode in functions.php,
   and then add the shortcode to the template?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] Bricks Builder compatibility](https://wordpress.org/support/topic/bricks-builder-compatibility-2/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/bricks-builder-compatibility-2/#post-16826877)
 * [@dizplay](https://wordpress.org/support/users/dizplay/) Sorry, I don’t to want
   publish an admin login details. I need more instructions. Do I do these:
    1. Create an advance content type for the repeater field (what is the name of the
       advance content type?)
    2. Create a table based Book post type
    3. Create a panda repeater field to use the advance content type
 * Which page do I need to edit?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] Bricks Builder compatibility](https://wordpress.org/support/topic/bricks-builder-compatibility-2/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/bricks-builder-compatibility-2/#post-16826476)
 * Hi, [@dizplay](https://wordpress.org/support/users/dizplay/). OK. Thanks to Bricks,
   I got a copy. I am new to Bricks. How do I get to that screen? Do you have a 
   pods json package for me to import?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] Bricks Builder compatibility](https://wordpress.org/support/topic/bricks-builder-compatibility-2/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [3 years ago](https://wordpress.org/support/topic/bricks-builder-compatibility-2/#post-16782220)
 * I can try. How do you want to use the plugin? Backend or Frontend?

Viewing 15 replies - 1 through 15 (of 165 total)

1 [2](https://wordpress.org/support/users/codingpanda/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/codingpanda/replies/page/3/?output_format=md)…
[9](https://wordpress.org/support/users/codingpanda/replies/page/9/?output_format=md)
[10](https://wordpress.org/support/users/codingpanda/replies/page/10/?output_format=md)
[11](https://wordpress.org/support/users/codingpanda/replies/page/11/?output_format=md)
[→](https://wordpress.org/support/users/codingpanda/replies/page/2/?output_format=md)