Title: Coding Panda's Replies - page 4 | 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 - 46 through 60 (of 165 total)

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

 *   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-15407329)
 * OK, now we are sure it returns a padra_content. Next, we check if “news” is the
   right field.
 *     ```
       <?php
                 $params= array(
                   'orderby' => 't.post_title DESC',
                   'limit'   => 25,				    
                 );
                 $news_pod= pods( 'padra_content', $params );
                 $items= $news_pod->data();
                 echo '<pre>';
                 print_r( $news_pod->fields );
                 echo '</pre>';
                 foreach( $items as $item ){
                   $announcement= pods_field( 'padra_content', $item->ID, 'news' );            
                 }
       ?>
       ```
   
 * Please let me have the output.
 *   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/2/#post-15407317)
 * OK, let’s check what is in $items.
 *     ```
       <?php
                 $params= array(
                   'orderby' => 't.post_title DESC',
                   'limit'   => 25,				    
                 );
                 $news_pod= pods( 'padra_content', $params );
                 $items= $news_pod->data();
                 print_r( $items );
                 foreach( $items as $item ){
                   $announcement= pods_field( 'padra_content', $item->ID, 'news' );            
                 }
       ?>
       ```
   
 *   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/2/#post-15407307)
 * [@sinahosseinigst](https://wordpress.org/support/users/sinahosseinigst/)
 * Can you print_r $announcement?
 *     ```
       <?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, 'news' );
                   print_r( $announcement );
                   echo $announcement;
                 }
       ?>
       ```
   
 *   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/2/#post-15407260)
 * [@sinahosseinigst](https://wordpress.org/support/users/sinahosseinigst/)
 * I did test the code before I updated the thread. It works in my testing. [https://gofile.io/d/LJMQiF](https://gofile.io/d/LJMQiF)
 * The error you have is not from the plugin. Can you check your code carefully?
   Any inappropriate mark like ` , ;
 *   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/2/#post-15407212)
 * [@sinahosseinigst](https://wordpress.org/support/users/sinahosseinigst/)
 * You don’t have a news pod, the pod name you use is padra_content. news is the
   field name you use for the repeater field linked to the “announcement” Advanced
   Content Type.
 * So you code should be:
    ` $params= array( ‘orderby’ => ‘t.post_title DESC’, ‘
   limit’ => 25, ); $news_pod= pods( ‘padra_content’, $params ); $items= $news_pod-
   >data();
 *  foreach( $items as $item ){
    $announcements = pods_field( ‘padra_content’, $
   item->ID, ‘news’ ); foreach( $announcements as $announcement ){ echo $announcement[‘
   name’] . ‘<br/>’; } }`
 *   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/2/#post-15407134)
 * [@sinahosseinigst](https://wordpress.org/support/users/sinahosseinigst/)
 * pods_field( ‘pods_name’, ‘post_id’, ‘field_name’ ) gives you everything in the
   section 1 in an array. the news_image holds the value of the image id, you can
   use wp_get_attachment_image() to get the image. [https://developer.wordpress.org/reference/functions/wp_get_attachment_image/](https://developer.wordpress.org/reference/functions/wp_get_attachment_image/)
 * pods_field is from Pods Framework: [https://docs.pods.io/code/field-functions/pods_field/](https://docs.pods.io/code/field-functions/pods_field/)
 *   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/2/#post-15407044)
 * [@sinahosseinigst](https://wordpress.org/support/users/sinahosseinigst/)
 * If it is in the single-padra_content.php, use pods_field( ‘news’ ) for the announcement.
 * Alternatively, use this pods_field( ‘pods_name’, ‘post_id’, ‘field_name’ ) anywhere.
 * pods_name is the name of the target pod, in this case, it is padra_content.
    
   post_id is the post id of the post, in this case, it is an ID of a padra_content
   post, for instance: 123. field_name is the name of the repeater field in the 
   pod, , in this case, it is “news”.
 * So it will be pods_field( ‘padra_content’, 123, ‘news’ );
 * I hope it makes sense and helps.
 *   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/#post-15407014)
 * [@sinahosseinigst](https://wordpress.org/support/users/sinahosseinigst/)
 * Here gives you some samples of how to fetch the data on the front end:
 * [https://wordpress.org/plugins/panda-pods-repeater-field/#how%20to%20fetch%20data%20at%20the%20frontend](https://wordpress.org/plugins/panda-pods-repeater-field/#how%20to%20fetch%20data%20at%20the%20frontend)
 *   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/#post-15406990)
 * Hi [@sinahosseinigst](https://wordpress.org/support/users/sinahosseinigst/)
 * Do you mean you want to render out an announcement on the front end?
 *   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/#post-15400797)
 * [@sinahosseinigst](https://wordpress.org/support/users/sinahosseinigst/)
 * It is great to hear that the problem is solved. There used to be a reminder on
   the screen to ask users to save the parent item first, but it has disappeared
   since an update of WordPress. I will bring it back.
 * You may want to display the titles of Farsi and English lyrics. Please watch 
   this video from 12:05 [https://www.youtube.com/watch?v=H7YJLMPgG2U&t=2s](https://www.youtube.com/watch?v=H7YJLMPgG2U&t=2s)
   It is based on Pods 2.7 but I am sure you can figure it out.
 * To embed an iFrame, please use WYSIWYG.
 *   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/#post-15399742)
 * [@sinahosseinigst](https://wordpress.org/support/users/sinahosseinigst/)
 * It still works in my testing: [https://gofile.io/d/UHLGY8](https://gofile.io/d/UHLGY8)
 * Can you try to add a new Padra content, make sure you save the parent item first
   at each step as it needs the ID to link up the parent and the child, so create
   a Padra content and save, then create an Album in it and save, open the newly
   added album then add a Lyric and save, open the newly added Lyric … and so on
 *   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/#post-15399421)
 * Hi [@sinahosseinigst](https://wordpress.org/support/users/sinahosseinigst/)
 * I am glad to see someone use the plugin with so many layers. That is how I use
   it. 🙂
 * I imported your pods and they worked fine.
 * Did you save the parent item before saving the child ones? For example, save 
   a Sub Lyric before saving its Farsi Lyric and English Lyric.
 * If you could provide some screenshots or videos, it will help me diagnose the
   problem.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] Sort functuon](https://wordpress.org/support/topic/sort-functuon/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/sort-functuon/#post-15393036)
 * Hi [@ozosh182](https://wordpress.org/support/users/ozosh182/) WordPress has released
   5.9.1. If you update WordPress, it should just work.
 * I will release my fix for the settings for 5.9 later.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] Sort functuon](https://wordpress.org/support/topic/sort-functuon/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/sort-functuon/#post-15388183)
 * [@ozosh182](https://wordpress.org/support/users/ozosh182/) Thanks for letting
   me know. I will sort it out ASAP.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Panda Pods Repeater Field] Remove Unwanted CSS / JS from Frontend](https://wordpress.org/support/topic/remove-unwanted-css-js-from-frontend/)
 *  Plugin Author [Coding Panda](https://wordpress.org/support/users/codingpanda/)
 * (@codingpanda)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/remove-unwanted-css-js-from-frontend/#post-15375385)
 * [@wparijat](https://wordpress.org/support/users/wparijat/) You are welcome.

Viewing 15 replies - 46 through 60 (of 165 total)

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