Title: Coding Panda's Replies - page 3 | 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 - 31 through 45 (of 165 total)

[←](https://wordpress.org/support/users/codingpanda/replies/page/2/?output_format=md)
[1](https://wordpress.org/support/users/codingpanda/replies/?output_format=md) [2](https://wordpress.org/support/users/codingpanda/replies/page/2/?output_format=md)
3 [4](https://wordpress.org/support/users/codingpanda/replies/page/4/?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/4/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] This plugin woks with internal Pods Templates?](https://wordpress.org/support/topic/this-plugin-woks-with-internal-pods-templates/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/this-plugin-woks-with-internal-pods-templates/#post-15749971)
 * If it is OK with you, would you export the related pods and post them here, together
   with the code of your template?
 * I need the details to understand the problem better to give an answer.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] This plugin woks with internal Pods Templates?](https://wordpress.org/support/topic/this-plugin-woks-with-internal-pods-templates/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/this-plugin-woks-with-internal-pods-templates/#post-15742874)
 * Yes, it works with internal Pods Templates.
 * It is an array so you have to use this template tag: [each related_field_name][/
   each]
 * [https://docs.pods.io/displaying-pods/template-tags/each-loop-tag/](https://docs.pods.io/displaying-pods/template-tags/each-loop-tag/)
   
   [https://www.youtube.com/watch?v=81PkhEOZYb8](https://www.youtube.com/watch?v=81PkhEOZYb8)
   at 6:25
 * However, it doesn’t work with nested repeater fields. For nested repeater fields,
   you have to create shortcodes to use in the Pods Templates.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] displaying nested repeaters](https://wordpress.org/support/topic/displaying-nested-repeaters/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/displaying-nested-repeaters/#post-15574876)
 * Hi [@m1chel](https://wordpress.org/support/users/m1chel/)
 * Please try using pods_field( ‘pods_name’, ‘post_id’, ‘field_name’ ).
 *     ```
       $consigliati = pods_field( 'luogo', $mypod->display( 'id' ), 'consigliati'); 
       foreach( $consigliati as $place ){
           echo $place['name'] . '<br/>';
       }
       ```
   
 * instead of
 *     ```
       $consigliati = pods( 'consigliati' );             
       $consigliati->find();
       $consigliati->fetch()
       ```
   
 * I assumed “consigliati” is the field name for the repeater field as well.
 * I will suggest using pods_field for the towns as well.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] Date Field is not working in repeater](https://wordpress.org/support/topic/date-field-is-not-working-in-repeater/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/date-field-is-not-working-in-repeater/#post-15561925)
 * [@jaswinder0091](https://wordpress.org/support/users/jaswinder0091/)
 * Sorry for the delay. I didn’t notice your topic.
 * It works fine on my end. The date field is provided by Pods Framework. The Repeater
   field doesn’t interfere with the date field.
 * Would you please check if there is a plugin conflict? Maybe try the Advanced 
   Content-Type on its Pods page directly instead of as a repeater field.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] Insert with additional field](https://wordpress.org/support/topic/insert-with-additional-field/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/insert-with-additional-field/#post-15487467)
 * Hi [@jaceejoef](https://wordpress.org/support/users/jaceejoef/)
 * When I created that function, I was not aware that it didn’t work for files.
 * pandarf_insert returns the id when the insert is successful, so the workaround
   is to use Pods save API: [https://docs.pods.io/code/pods/save/](https://docs.pods.io/code/pods/save/)
 *     ```
       $id_int = pandarf_insert(
       	array( 
       		'name' => '11112'
       	), 
       	array( 
       		'child_pod_name' => 'fabric_code', 
       		'parent_pod_id' => 548, // parent cpt id
       		'parent_pod_post_id' => 1201, // the post id
       		'parent_pod_field_id' => 566, // parent cpt field id
       		'user_id' => 1
       	), 
       	true
       );
       $pod = pods( 'fabric_code', $id_int );
       $data = array(
               'image' => array(
                   'id'    => 1138,   
               )
       );
       $pod->save( $data );
       ```
   
 * Let me know if that works.
    -  This reply was modified 4 years, 2 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] What’s the best way to give my Panda-ish website to the cutomer?](https://wordpress.org/support/topic/whats-the-best-way-to-give-my-panda-ish-website-to-the-cutomer/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/whats-the-best-way-to-give-my-panda-ish-website-to-the-cutomer/#post-15420118)
 * If you want to clone your site to another hosting, there are plenty of plug-ins
   you can use, such as Duplicator, All in one WP migration.
 * If it is to add to another site, you can use Pods Migrate Packages to export 
   and import your pods, and merge your files to their theme. You may need to reconnect
   the tables for the repeater fields as the IDs are different in the new site.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] How to have condition inside echo ‘html content’?](https://wordpress.org/support/topic/how-to-have-condition-inside-echo-html-content/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/how-to-have-condition-inside-echo-html-content/#post-15409398)
 * [@sinahosseinigst](https://wordpress.org/support/users/sinahosseinigst/)
 * lol, the support here is for issues related to the plugin, not for debugging 
   users’ code. Anyway, I can try to help this time.
 * Have you checked the debug log? Follow this tutorial if you haven’t enabled WordPress
   Debug: [https://wordpress.org/support/article/debugging-in-wordpress/](https://wordpress.org/support/article/debugging-in-wordpress/)
 * If you enable it, you can see an error waning: PHP Parse error: syntax error,
   unexpected token “foreach” in …… line n
 * In other words, you cannot put foreach inside echo.
 * Please change
 *     ```
       <div class="text-gray-200 border-t sm:border-b border-l sm:border-r-0 border-r border-c-gray-7">'
                                     . foreach($music['track_lyrics_translation'] as $details){
                                       if($details['an_instrumental_track_from_a_lyrics_having_album']){
                                         echo '<div class="cursor-default not-last-child:border-b not-last-child:border-c-gray-7 track-name xl:px-c-11 xl:py-c-10 md:px-c-51 md:py-c-50 px-c-69 py-c-68 w-full text-left text-gray-600 font-bold" title="Instrumental">'
                                           . $details['track_name'] .
                                         '</div>';
                                       }
                                       else{
                                         echo '<button class="not-last-child:border-b not-last-child:border-c-gray-7 track-name xl:px-c-11 xl:py-c-10 md:px-c-51 md:py-c-50 px-c-69 py-c-68 w-full text-left hover:bg-c-gray-3 transition-colors focus:outline-none">'
                                           . $details['track_name'] .
                                         '</button>';
                                       }
                                     } .
                                   '</div>
       ```
   
 * to
 *     ```
       <div class="text-gray-200 border-t sm:border-b border-l sm:border-r-0 border-r border-c-gray-7">';
                                     foreach($music['track_lyrics_translation'] as $details){
                                       if($details['an_instrumental_track_from_a_lyrics_having_album']){
                                         echo '<div class="cursor-default not-last-child:border-b not-last-child:border-c-gray-7 track-name xl:px-c-11 xl:py-c-10 md:px-c-51 md:py-c-50 px-c-69 py-c-68 w-full text-left text-gray-600 font-bold" title="Instrumental">'
                                           . $details['track_name'] .
                                         '</div>';
                                       }
                                       else{
                                         echo '<button class="not-last-child:border-b not-last-child:border-c-gray-7 track-name xl:px-c-11 xl:py-c-10 md:px-c-51 md:py-c-50 px-c-69 py-c-68 w-full text-left hover:bg-c-gray-3 transition-colors focus:outline-none">'
                                           . $details['track_name'] .
                                         '</button>';
                                       }
                                     } 
       echo                            '</div>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] Does Panda use some CSS codes?!](https://wordpress.org/support/topic/does-panda-use-some-css-codes/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/does-panda-use-some-css-codes/#post-15408543)
 * [@sinahosseinigst](https://wordpress.org/support/users/sinahosseinigst/) Thanks
   🙂 .
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] Does Panda use some CSS codes?!](https://wordpress.org/support/topic/does-panda-use-some-css-codes/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/does-panda-use-some-css-codes/#post-15408529)
 * [@sinahosseinigst](https://wordpress.org/support/users/sinahosseinigst/)
 * Thanks for the suggestion.
 * I don’t know what projects use this plugin other than mine. The plugin is something
   I develop and maintain after work. As long as some people find it useful, I am
   happy.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] Does Panda use some CSS codes?!](https://wordpress.org/support/topic/does-panda-use-some-css-codes/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/does-panda-use-some-css-codes/#post-15408515)
 * [@sinahosseinigst](https://wordpress.org/support/users/sinahosseinigst/)
 * You can install SVG support: [https://wordpress.org/plugins/svg-support/](https://wordpress.org/plugins/svg-support/)
   and use the WYSIWYG field.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] Does Panda use some CSS codes?!](https://wordpress.org/support/topic/does-panda-use-some-css-codes/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/does-panda-use-some-css-codes/#post-15408492)
 * [@sinahosseinigst](https://wordpress.org/support/users/sinahosseinigst/)
 * Sorry, my misunderstanding. Ignore it if nothing was deleted.
 * I am glad it works.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] Repeater media field only show the media id – how do I get the media url?](https://wordpress.org/support/topic/repeater-media-field-only-show-the-media-id-how-do-i-get-the-media-url/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/repeater-media-field-only-show-the-media-id-how-do-i-get-the-media-url/#post-15408484)
 * [@komengtech](https://wordpress.org/support/users/komengtech/)
 * If you want to get its URL, you can try this method: wp_get_attachment_image_src(
   int $attachment_id, string|int[] $size = ‘thumbnail’, bool $icon = false ).
 * [https://developer.wordpress.org/reference/functions/wp_get_attachment_image_src/](https://developer.wordpress.org/reference/functions/wp_get_attachment_image_src/)
 * Or
 * wp_get_attachment_url( int $attachment_id )
 * [https://developer.wordpress.org/reference/functions/wp_get_attachment_url/](https://developer.wordpress.org/reference/functions/wp_get_attachment_url/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] Does Panda use some CSS codes?!](https://wordpress.org/support/topic/does-panda-use-some-css-codes/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/does-panda-use-some-css-codes/#post-15408440)
 * [@sinahosseinigst](https://wordpress.org/support/users/sinahosseinigst/)
 * Please don’t delete any files. You have to restore the plugin.
 * Do you want to remove the CSS on the back-end or frontend?
 * To do it on the frontend,
 * Add this code to your functions.php
 *     ```
       add_action( 'wp_enqueue_scripts', 'dequeue_scripts_and_styles', 11 );	
   
       function dequeue_scripts_and_styles() {	
           wp_dequeue_script( 'panda-pods-repeater-scripts' );	 
           wp_dequeue_style( 'panda-pods-repeater-general-styles' );
           wp_dequeue_style( 'panda-pods-repeater-styles' );		       	   
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] A weird glitch using Panda Pods Repeater Field causing all my content lost!](https://wordpress.org/support/topic/a-weird-glitch-using-panda-pods-repeater-field-causing-all-my-content-lost/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/a-weird-glitch-using-panda-pods-repeater-field-causing-all-my-content-lost/page/3/#post-15407372)
 * They are stored in the array. Just need to use the keys in the array.
 * <?php
    $params= array( ‘orderby’ => ‘t.post_title DESC’, ‘limit’ => 25, ); $news_pod
   = pods( ‘padra_content’, $params ); $items= $news_pod->data();
 * foreach( $items as $item ){
    $announcement = pods_field( ‘padra_content’, $item-
   >ID, ‘announcement’ ); echo $announcement[‘name’] . ‘<br/>’; echo $announcement[‘
   news_title’] . ‘<br/>’; echo $announcement[‘news_text’] . ‘<br/>’; $image = wp_get_attachment_image(
   $announcement[‘news_image’], ‘large’ ); if( ! empty( $image ) ){ echo $image;}}?
   >
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] A weird glitch using Panda Pods Repeater Field causing all my content lost!](https://wordpress.org/support/topic/a-weird-glitch-using-panda-pods-repeater-field-causing-all-my-content-lost/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/a-weird-glitch-using-panda-pods-repeater-field-causing-all-my-content-lost/page/3/#post-15407346)
 * [@sinahosseinigst](https://wordpress.org/support/users/sinahosseinigst/)
 * OK, looks like you changed “news” to “announcement” for the repeater field, so
   we need to update that.
    <?php $params= array( ‘orderby’ => ‘t.post_title DESC’,‘
   limit’ => 25, ); $news_pod= pods( ‘padra_content’, $params ); $items= $news_pod-
   >data();
 *  foreach( $items as $item ){
    $announcement = pods_field( ‘padra_content’, $item-
   >ID, ‘announcement’ ); print_r( $announcement ); } ?>
 * Please let me know if it is sorted.

Viewing 15 replies - 31 through 45 (of 165 total)

[←](https://wordpress.org/support/users/codingpanda/replies/page/2/?output_format=md)
[1](https://wordpress.org/support/users/codingpanda/replies/?output_format=md) [2](https://wordpress.org/support/users/codingpanda/replies/page/2/?output_format=md)
3 [4](https://wordpress.org/support/users/codingpanda/replies/page/4/?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/4/?output_format=md)