Title: pubdate php date not circulation problem
Last modified: January 2, 2022

---

# pubdate php date not circulation problem

 *  Resolved [marsa1234](https://wordpress.org/support/users/marsa1234/)
 * (@marsa1234)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/pubdate-php-problem/)
 * I’ve looked at the php syntax written by the engineer and it’s fine, but the 
   [rss](https://nsn.com.tw/xml-feed) display of the pubdate is incomplete. Some
   of them disappear and only +0800 remains.
    Does anyone know what the problem 
   is? Here is the engineer’s syntax, I have looked at it for a long time and have
   tried many ways but cannot change it. The company requires the use of pubdate
   syntax. Can anyone help me? Thank you.
 * —————————————————–
 *     ```
       <?php
       /*
       Template Name: xml Feed
       */
       header('Content-Type: ' . feed_content_type('rss-http') . '; charset=' . get_option('blog_charset'), true);
       echo '<?xml version="1.0" encoding="utf-8"?>';
       ?>
       <rss version="2.0">
             <channel>
           <title><![CDATA[Wownews RSS 影劇娛樂]]></title>
           <language>zh_tw</language>
           <link>http://www.wownews.tw</link>
           <generator>rss_generator</generator>
           <description><![CDATA[Wownews RSS 影劇娛樂]]></description>
       <?php $experience= new WP_Query( array ( 'post_type' => 'post','posts_per_page' => 10));?>
       <?php while($experience->have_posts()) : $experience->the_post(); 
   
               $featured_image = wp_get_attachment_url( get_post_thumbnail_id($post->ID, 'thumbnail') ); 
               $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
               $thumb_id = get_post_thumbnail_id();
        $thumb_url_array = wp_get_attachment_image_src($thumb_id, 'thumbnail-size', true);
        $thumb_url = $thumb_url_array[0];
        $imageurl = apply_filters( 'jetpack_photon_url', $thumb_url );
   
               ?>
           <item>
             <title><![CDATA[<?php the_title();?>]]></title>
             <description><![CDATA[<?php the_content();?> ]]></description>
             <pubDate><?php the_date( 'd, D F Y H:i:s' ); ?> +0800</pubDate>
             <link><?php the_permalink();?></link>
             <enclosure url="<?php echo $imageurl;?>" />
           </item>
       <?php endwhile;  ?> 
       </channel>
       </rss>
       ```
   
    -  This topic was modified 4 years, 4 months ago by [marsa1234](https://wordpress.org/support/users/marsa1234/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpubdate-php-problem%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [danikoo](https://wordpress.org/support/users/danikoo/)
 * (@danikoo)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/pubdate-php-problem/#post-15213882)
 * Hi
    in order to control the way pubDate is presented please go to the plugin 
   Settings and Defaults Scroll down to
 * > pubDate date format:
 *  and change the formt
    see screen shot [attached ](https://ibb.co/zSMgk9n) best
   regards Danny
 *  Thread Starter [marsa1234](https://wordpress.org/support/users/marsa1234/)
 * (@marsa1234)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/pubdate-php-problem/#post-15214017)
 * [@danikoo](https://wordpress.org/support/users/danikoo/) thanks for the help,
   but my problems are some will show but some posts are not. I am not sure what’s
   issues of it…
 *  Thread Starter [marsa1234](https://wordpress.org/support/users/marsa1234/)
 * (@marsa1234)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/pubdate-php-problem/#post-15214056)
 * thanks, i fixed it by watch this post. [post](https://wordpress.stackexchange.com/questions/368427/change-pubdate-in-rss-feed-in-another-format)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘pubdate php date not circulation problem’ is closed to new replies.

 * ![](https://ps.w.org/custom-simple-rss/assets/icon-128x128.png?rev=1199714)
 * [Custom Simple Rss](https://wordpress.org/plugins/custom-simple-rss/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-simple-rss/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-simple-rss/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-simple-rss/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-simple-rss/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-simple-rss/reviews/)

## Tags

 * [pubdate](https://wordpress.org/support/topic-tag/pubdate/)
 * [RSS](https://wordpress.org/support/topic-tag/rss/)

 * 3 replies
 * 2 participants
 * Last reply from: [marsa1234](https://wordpress.org/support/users/marsa1234/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/pubdate-php-problem/#post-15214056)
 * Status: resolved