當前位置: 首頁>>代碼示例>>PHP>>正文


PHP the_guid函數代碼示例

本文整理匯總了PHP中the_guid函數的典型用法代碼示例。如果您正苦於以下問題:PHP the_guid函數的具體用法?PHP the_guid怎麽用?PHP the_guid使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了the_guid函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: widget

    public function widget($args, $instance)
    {
        $title = apply_filters('widget_title', $instance['title']);
        // before and after widget arguments are defined by themes
        $params = array('post_type' => array('video'), 'pagination' => false, 'posts_per_page' => '1', 'order' => 'DESC', 'meta_query' => array(array('key' => 'video_destaque', 'value' => '1', 'compare' => '=')));
        $the_query = new WP_Query($params);
        echo $args['before_widget'];
        if ($the_query->have_posts()) {
            while ($the_query->have_posts()) {
                $the_query->the_post();
                $youtube_url = get_post_meta(get_the_ID(), 'video_youtube_url');
                $url_params = parse_url($youtube_url[0]);
                parse_str($url_params['query']);
                ?>
                <div class="panel panel-default">
                    <div class="panel-body">
                        <header><h2><a href="/videos"><?php 
                echo $title;
                ?>
</a></h2></header>
                        <section class="embed-responsive embed-responsive-16by9 mt-sm">
                            <iframe width="100%" height="100%" src="https://www.youtube.com/embed/<?php 
                echo $v;
                ?>
" frameborder="0" allowfullscreen>
                            </iframe>
                        </section>
                        <section class="video-description">
                            <h3><a href="<?php 
                the_guid();
                ?>
"><?php 
                the_title();
                ?>
</a></h3>
                            <p><?php 
                the_excerpt();
                ?>
</p>
                            <p><a href="https://www.youtube.com/channel/UCTKceQBthsUpwYUcQfD4W8g" class="fontsize-sm" target="_blank">Pensando o Direito no <i class="fa fa-youtube"></i> youtube</a></p>
                        </section>
                    </div>
                </div>
            <?php 
            }
            //end of the loop
        }
        echo $args['after_widget'];
    }
開發者ID:Gabriel-Pereira-MJ,項目名稱:pensandoodireito-tema,代碼行數:49,代碼來源:functions.php

示例2: the_permalink_rss

        ?>
	<item>
		<link><?php 
        the_permalink_rss();
        ?>
</link>
		<pubDate><?php 
        echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false);
        ?>
</pubDate>
		<dc:creator><?php 
        echo get_the_author_meta('login');
        ?>
</dc:creator>
		<guid isPermaLink="false"><?php 
        esc_url(the_guid());
        ?>
</guid>
		<wp:post_id><?php 
        echo $post->ID;
        ?>
</wp:post_id>
		<wp:post_date><?php 
        echo $post->post_date;
        ?>
</wp:post_date>
		<wp:post_date_gmt><?php 
        echo $post->post_date_gmt;
        ?>
</wp:post_date_gmt>
		<wp:comment_status><?php 
開發者ID:arfianadam,項目名稱:arfianadam.com,代碼行數:31,代碼來源:export.php

示例3: get_entry

	function get_entry($postID, $post_type = 'post') {
		log_app('function',"get_entry($postID, '$post_type')");
		ob_start();
		global $posts, $post, $wp_query, $wp, $wpdb, $blog_id, $post_cache;
		switch($post_type) {
			case 'post':
				$varname = 'p';
				break;
			case 'attachment':
				$varname = 'attachment_id';
				break;
		}
		query_posts($varname . '=' . $postID);
		if ( have_posts() ) : while ( have_posts() ) : the_post();
		$post = $GLOBALS['post'];
		?>
		<?php log_app('$post',print_r($GLOBALS['post'],true)); ?>
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:app="http://purl.org/atom/app#" xml:lang="<?php echo get_option('rss_language'); ?>">
	<id><?php the_guid($post->ID); ?></id>
	<title type="html"><![CDATA[<?php the_title_rss() ?>]]></title>

	<updated><?php echo get_post_modified_time('Y-m-d\TH:i:s\Z', true); ?></updated>
	<published><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></published>
	<app:control>
		<app:draft><?php echo ($GLOBALS['post']->post_status == 'draft' ? 'yes' : 'no') ?></app:draft>
	</app:control>
	<author>
		<name><?php the_author()?></name>
		<email><?php the_author_email()?></email>
		<uri><?php the_author_url()?></uri>
	</author>
<?php if($GLOBALS['post']->post_type == 'attachment') { ?>
	<link rel="edit" href="<?php $this->the_entry_url() ?>" />
	<link rel="edit-media" href="<?php $this->the_media_url() ?>" />
	<content type="<?php echo $GLOBALS['post']->post_mime_type ?>" src="<?php the_guid(); ?>"/>
<?php } else { ?>
	<link href="<?php permalink_single_rss() ?>" />
	<link rel="edit" href="<?php $this->the_entry_url() ?>" />
<?php } ?>
<?php foreach(get_the_category() as $category) { ?>
	<category scheme="<?php bloginfo_rss('home') ?>" term="<?php echo $category->cat_name?>" />
	<summary type="html"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary>
<?php }
	if ( strlen( $GLOBALS['post']->post_content ) ) : ?>
	<content type="html"><![CDATA[<?php echo get_the_content('', 0, '') ?>]]></content>
<?php endif; ?>
</entry>
<?php
		$entry = ob_get_contents();
		break;
		endwhile;
		else:
			$this->auth_required(__("Access Denied."));
		endif;
		ob_end_clean();

		log_app('get_entry returning:',$entry);
		return $entry; 
	}
開發者ID:staylor,項目名稱:develop.svn.wordpress.org,代碼行數:59,代碼來源:wp-app.php

示例4: me_export_wp


//.........這裏部分代碼省略.........

<?php 
    if ($post_ids) {
        global $wp_query;
        $wp_query->in_the_loop = true;
        // Fake being in the loop.
        // fetch 20 posts at a time rather than loading the entire table into memory
        while ($next_posts = array_splice($post_ids, 0, 20)) {
            $where = "WHERE ID IN (" . join(',', $next_posts) . ")";
            $posts = $wpdb->get_results("SELECT * FROM {$wpdb->posts} {$where}");
            // Begin Loop
            foreach ($posts as $post) {
                setup_postdata($post);
                $is_sticky = is_sticky($post->ID) ? 1 : 0;
                ?>
	<item>
		<title><?php 
                echo apply_filters('the_title_rss', $post->post_title);
                ?>
</title>
		<link><?php 
                the_permalink_rss();
                ?>
</link>
		<pubDate><?php 
                echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false);
                ?>
</pubDate>
		<dc:creator><?php 
                echo get_the_author_meta('login');
                ?>
</dc:creator>
		<guid isPermaLink="false"><?php 
                esc_url(the_guid());
                ?>
</guid>
		<description></description>
		<content:encoded><?php 
                echo wxr_cdata(apply_filters('the_content_export', $post->post_content));
                ?>
</content:encoded>
		<excerpt:encoded><?php 
                echo wxr_cdata(apply_filters('the_excerpt_export', $post->post_excerpt));
                ?>
</excerpt:encoded>
		<wp:post_id><?php 
                echo $post->ID;
                ?>
</wp:post_id>
		<wp:post_date><?php 
                echo $post->post_date;
                ?>
</wp:post_date>
		<wp:post_date_gmt><?php 
                echo $post->post_date_gmt;
                ?>
</wp:post_date_gmt>
		<wp:comment_status><?php 
                echo $post->comment_status;
                ?>
</wp:comment_status>
		<wp:ping_status><?php 
                echo $post->ping_status;
                ?>
</wp:ping_status>
		<wp:post_name><?php 
開發者ID:lenguyenitc,項目名稱:donations,代碼行數:67,代碼來源:menu-exporter.php

示例5: dsq_export_wp


//.........這裏部分代碼省略.........
    }
    ?>
		<?php 
    do_action('rss2_head');
    ?>
		<?php 
    if ($posts) {
        foreach ($posts as $post) {
            ob_start();
            start_wp();
            ?>
	<item>
	<title><?php 
            the_title_rss();
            ?>
</title>
	<link><?php 
            permalink_single_rss();
            ?>
</link>
	<pubDate><?php 
            echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false);
            ?>
</pubDate>
	<dc:creator><?php 
            the_author();
            ?>
</dc:creator>
	<?php 
            the_category_rss();
            ?>

	<guid isPermaLink="false"><?php 
            the_guid();
            ?>
</guid>
	<description></description>
	<content:encoded><![CDATA[<?php 
            echo $post->post_content;
            ?>
]]></content:encoded>
	<wp:post_id><?php 
            echo $post->ID;
            ?>
</wp:post_id>
	<wp:post_date><?php 
            echo $post->post_date;
            ?>
</wp:post_date>
	<wp:post_date_gmt><?php 
            echo $post->post_date_gmt;
            ?>
</wp:post_date_gmt>
	<wp:comment_status><?php 
            echo $post->comment_status;
            ?>
</wp:comment_status>
	<wp:ping_status><?php 
            echo $post->ping_status;
            ?>
</wp:ping_status>
	<wp:post_name><?php 
            echo $post->post_name;
            ?>
</wp:post_name>
	<wp:status><?php 
開發者ID:julianbonilla,項目名稱:three20.info,代碼行數:67,代碼來源:export.php

示例6: export_wp


//.........這裏部分代碼省略.........
<?php 
            if ($post_ids) {
                global $wp_query, $post;
                $wp_query->in_the_loop = true;
                // Fake being in the loop.
                // fetch 20 posts at a time rather than loading the entire table into memory
                while ($next_posts = array_splice($post_ids, 0, 20)) {
                    $where = 'WHERE ID IN (' . join(',', $next_posts) . ')';
                    $posts = $wpdb->get_results("SELECT * FROM {$wpdb->posts} {$where}");
                    // Begin Loop
                    foreach ($posts as $post) {
                        $progress->tick();
                        setup_postdata($post);
                        $is_sticky = is_sticky($post->ID) ? 1 : 0;
                        ?>
	<item>
		<title><?php 
                        echo apply_filters('the_title_rss', $post->post_title);
                        ?>
</title>
		<link><?php 
                        the_permalink_rss();
                        ?>
</link>
		<pubDate><?php 
                        echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false);
                        ?>
</pubDate>
		<dc:creator><?php 
                        echo get_the_author_meta('login');
                        ?>
</dc:creator>
		<guid isPermaLink="false"><?php 
                        esc_url(the_guid());
                        ?>
</guid>
		<description></description>
		<content:encoded><?php 
                        echo wxr_cdata(apply_filters('the_content_export', $post->post_content));
                        ?>
</content:encoded>
		<excerpt:encoded><?php 
                        echo wxr_cdata(apply_filters('the_excerpt_export', $post->post_excerpt));
                        ?>
</excerpt:encoded>
		<wp:post_id><?php 
                        echo $post->ID;
                        ?>
</wp:post_id>
		<wp:post_date><?php 
                        echo $post->post_date;
                        ?>
</wp:post_date>
		<wp:post_date_gmt><?php 
                        echo $post->post_date_gmt;
                        ?>
</wp:post_date_gmt>
		<wp:comment_status><?php 
                        echo $post->comment_status;
                        ?>
</wp:comment_status>
		<wp:ping_status><?php 
                        echo $post->ping_status;
                        ?>
</wp:ping_status>
		<wp:post_name><?php 
開發者ID:rmccue,項目名稱:wp-cli,代碼行數:67,代碼來源:export.php

示例7: export_wp


//.........這裏部分代碼省略.........
    if ($post_ids) {
        global $wp_query;
        $wp_query->in_the_loop = true;
        // Fake being in the loop.
        // fetch 20 posts at a time rather than loading the entire table into memory
        while ($next_posts = array_splice($post_ids, 0, 20)) {
            $where = "WHERE ID IN (" . join(',', $next_posts) . ")";
            $posts = $wpdb->get_results("SELECT * FROM {$wpdb->posts} {$where} ORDER BY post_date_gmt ASC");
            foreach ($posts as $post) {
                setup_postdata($post);
                ?>
<item>
<title><?php 
                echo apply_filters('the_title_rss', $post->post_title);
                ?>
</title>
<link><?php 
                the_permalink_rss();
                ?>
</link>
<pubDate><?php 
                echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false);
                ?>
</pubDate>
<dc:creator><?php 
                echo wxr_cdata(get_the_author());
                ?>
</dc:creator>
<?php 
                wxr_post_taxonomy();
                ?>

<guid isPermaLink="false"><?php 
                the_guid();
                ?>
</guid>
<description></description>
<content:encoded><?php 
                echo wxr_cdata(apply_filters('the_content_export', $post->post_content));
                ?>
</content:encoded>
<excerpt:encoded><?php 
                echo wxr_cdata(apply_filters('the_excerpt_export', $post->post_excerpt));
                ?>
</excerpt:encoded>
<wp:post_id><?php 
                echo $post->ID;
                ?>
</wp:post_id>
<wp:post_date><?php 
                echo $post->post_date;
                ?>
</wp:post_date>
<wp:post_date_gmt><?php 
                echo $post->post_date_gmt;
                ?>
</wp:post_date_gmt>
<wp:comment_status><?php 
                echo $post->comment_status;
                ?>
</wp:comment_status>
<wp:ping_status><?php 
                echo $post->ping_status;
                ?>
</wp:ping_status>
<wp:post_name><?php 
開發者ID:nurpax,項目名稱:saastafi,代碼行數:67,代碼來源:export.php

示例8: esc_url

        ?>
</title>
		<link><?php 
        esc_url(the_permalink_rss());
        ?>
</link>
		<pubDate><?php 
        echo esc_html(mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false));
        ?>
</pubDate>
		<dc:creator><?php 
        echo $author;
        ?>
</dc:creator>
		<guid isPermaLink="false"><?php 
        esc_html(the_guid());
        ?>
</guid>
		<description><![CDATA[<?php 
        the_excerpt_rss();
        ?>
]]></description>
		<itunes:subtitle><?php 
        echo $itunes_excerpt;
        ?>
</itunes:subtitle>
		<content:encoded><![CDATA[<?php 
        echo $content;
        ?>
]]></content:encoded>
		<itunes:summary><?php 
開發者ID:signor-rossi,項目名稱:Seriously-Simple-Podcasting,代碼行數:31,代碼來源:feed-podcast.php

示例9: export_wp


//.........這裏部分代碼省略.........
        while ($next_posts = array_splice($post_ids, 0, 20)) {
            $where = "WHERE ID IN (" . join(',', $next_posts) . ")";
            $posts = $wpdb->get_results("SELECT * FROM {$wpdb->posts} {$where} ORDER BY post_date_gmt ASC");
            // Begin Loop
            foreach ($posts as $post) {
                setup_postdata($post);
                $is_sticky = 0;
                if (is_sticky($post->ID)) {
                    $is_sticky = 1;
                }
                ?>
	<item>
		<title><?php 
                echo apply_filters('the_title_rss', $post->post_title);
                ?>
</title>
		<link><?php 
                the_permalink_rss();
                ?>
</link>
		<pubDate><?php 
                echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false);
                ?>
</pubDate>
		<dc:creator><?php 
                echo wxr_cdata(get_the_author());
                ?>
</dc:creator>
		<?php 
                wxr_post_taxonomy();
                ?>

		<guid isPermaLink="false"><?php 
                esc_url(the_guid());
                ?>
</guid>
		<description></description>
		<content:encoded><?php 
                echo wxr_cdata(apply_filters('the_content_export', $post->post_content));
                ?>
</content:encoded>
		<excerpt:encoded><?php 
                echo wxr_cdata(apply_filters('the_excerpt_export', $post->post_excerpt));
                ?>
</excerpt:encoded>
		<wp:post_id><?php 
                echo $post->ID;
                ?>
</wp:post_id>
		<wp:post_date><?php 
                echo $post->post_date;
                ?>
</wp:post_date>
		<wp:post_date_gmt><?php 
                echo $post->post_date_gmt;
                ?>
</wp:post_date_gmt>
		<wp:comment_status><?php 
                echo $post->comment_status;
                ?>
</wp:comment_status>
		<wp:ping_status><?php 
                echo $post->ping_status;
                ?>
</wp:ping_status>
		<wp:post_name><?php 
開發者ID:google-code-backups,項目名稱:pumpmyvote,代碼行數:67,代碼來源:export.php

示例10: comment_link

		<link rel="alternate" href="<?php comment_link(); ?>" type="<?php bloginfo_rss('html_type'); ?>" />

		<author>
			<name><?php comment_author_rss(); ?></name>
			<?php if (get_comment_author_url()) echo '<uri>' . get_comment_author_url() . '</uri>'; ?>

		</author>

		<id><?php comment_link(); ?></id>
		<updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_comment_time('Y-m-d H:i:s', true), false); ?></updated>
		<published><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_comment_time('Y-m-d H:i:s', true), false); ?></published>
<?php if ( post_password_required($comment_post) ) : ?>
		<content type="html" xml:base="<?php comment_link(); ?>"><![CDATA[<?php echo get_the_password_form(); ?>]]></content>
<?php else : // post pass ?>
		<content type="html" xml:base="<?php comment_link(); ?>"><![CDATA[<?php comment_text(); ?>]]></content>
<?php endif; // post pass
	// Return comment threading information (http://www.ietf.org/rfc/rfc4685.txt)
	if ( $comment->comment_parent == 0 ) : // This comment is top level ?>
		<thr:in-reply-to ref="<?php the_guid() ?>" href="<?php the_permalink_rss() ?>" type="<?php bloginfo_rss('html_type'); ?>" />
<?php else : // This comment is in reply to another comment
	$parent_comment = get_comment($comment->comment_parent);
	// The rel attribute below and the id tag above should be GUIDs, but WP doesn't create them for comments (unlike posts). Either way, its more important that they both use the same system
?>
		<thr:in-reply-to ref="<?php echo get_comment_link($parent_comment) ?>" href="<?php echo get_comment_link($parent_comment) ?>" type="<?php bloginfo_rss('html_type'); ?>" />
<?php endif;
	do_action('comment_atom_entry', $comment->comment_ID, $comment_post->ID);
?>
	</entry>
<?php endwhile; endif; ?>
</feed>
開發者ID:staylor,項目名稱:develop.svn.wordpress.org,代碼行數:30,代碼來源:feed-atom-comments.php

示例11: export_wp

        function export_wp($cats)
        {
            global $wpdb, $posts, $post;
            $filename = 'wordpress.' . date('Y-m-d') . '.xml';
            header('Content-Description: File Transfer');
            header('Content-Type: application/octet-stream');
            header("Content-Disposition: attachment; filename={$filename}");
            header('Content-type: text/xml; charset=' . get_settings('blog_charset'), true);
            $posts = query_posts('');
            $cats = implode(',', $cats);
            $postswithcats = $wpdb->get_col("SELECT DISTINCT(post_id) FROM " . $wpdb->post2cat . " WHERE category_id IN ({$cats})");
            $postcats = implode(',', $postswithcats);
            $posts = $wpdb->get_results("SELECT * FROM {$wpdb->posts} WHERE ID IN ({$postcats}) ORDER BY post_date_gmt ASC");
            ?>
<!-- generator="wordpress/<?php 
            bloginfo_rss('version');
            ?>
" created="<?php 
            echo date('Y-m-d H:m');
            ?>
"-->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:wp="http://wordpress.org/export/1.0/"
>

<channel>
	<title><?php 
            bloginfo_rss('name');
            ?>
</title>
	<link><?php 
            bloginfo_rss('url');
            ?>
</link>
	<description><?php 
            bloginfo_rss("description");
            ?>
</description>
	<pubDate><?php 
            echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false);
            ?>
</pubDate>
	<generator>http://wordpress.org/?v=<?php 
            bloginfo_rss('version');
            ?>
</generator>
	<language><?php 
            echo get_option('rss_language');
            ?>
</language>
	<?php 
            do_action('rss2_head');
            if ($posts) {
                foreach ($posts as $post) {
                    start_wp();
                    ?>
<item>
<title><?php 
                    the_title_rss();
                    ?>
</title>
<link><?php 
                    permalink_single_rss();
                    ?>
</link>
<pubDate><?php 
                    echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false);
                    ?>
</pubDate>
<dc:creator><?php 
                    the_author();
                    ?>
</dc:creator>
<?php 
                    the_category_rss();
                    ?>

<guid isPermaLink="false"><?php 
                    the_guid();
                    ?>
</guid>
<description></description>
<wp:excerpt><![CDATA[<?php 
                    echo $post->post_excerpt;
                    ?>
]]></wp:excerpt>
<content:encoded><![CDATA[<?php 
                    echo $post->post_content;
                    ?>
]]></content:encoded>
<wp:post_date><?php 
                    echo $post->post_date;
                    ?>
</wp:post_date>
<wp:post_date_gmt><?php 
                    echo $post->post_date_gmt;
                    ?>
//.........這裏部分代碼省略.........
開發者ID:prabhu,項目名稱:desistartups,代碼行數:101,代碼來源:wp-xmlmigrate.php

示例12: the_guid

  <h3 class="hide-for-large-up">Share</h3>
  <ul>
    <li>
      <a href="https://www.facebook.com/sharer/sharer.php?u=<?php 
the_guid($id);
?>
" title="Facebook" class="facebook">
        <span class="visually-hidden">Share on Facebook</span>
      </a>
    </li>
    <li>
      <a href="https://twitter.com/home?status=<?php 
the_title();
?>
%20<?php 
the_guid($id);
?>
" title="Twitter" class="twitter">
        <span class="visually-hidden">Share on Twitter</span>
      </a>
    </li>
    <li>
      <a href="mailto:?subject=Check%20out:%20<?php 
the_title();
?>
" title="E-mail" class="mail">
        <span class="visually-hidden">Share via email</span>
      </a>
    </li>
  </ul>
</div>
開發者ID:stevanbarry,項目名稱:govsite,代碼行數:31,代碼來源:share.php

示例13: export_nxt


//.........這裏部分代碼省略.........

<?php 
    if ($post_ids) {
        global $nxt_query;
        $nxt_query->in_the_loop = true;
        // Fake being in the loop.
        // fetch 20 posts at a time rather than loading the entire table into memory
        while ($next_posts = array_splice($post_ids, 0, 20)) {
            $where = 'WHERE ID IN (' . join(',', $next_posts) . ')';
            $posts = $nxtdb->get_results("SELECT * FROM {$nxtdb->posts} {$where}");
            // Begin Loop
            foreach ($posts as $post) {
                setup_postdata($post);
                $is_sticky = is_sticky($post->ID) ? 1 : 0;
                ?>
	<item>
		<title><?php 
                echo apply_filters('the_title_rss', $post->post_title);
                ?>
</title>
		<link><?php 
                the_permalink_rss();
                ?>
</link>
		<pubDate><?php 
                echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false);
                ?>
</pubDate>
		<dc:creator><?php 
                echo get_the_author_meta('login');
                ?>
</dc:creator>
		<guid isPermaLink="false"><?php 
                esc_url(the_guid());
                ?>
</guid>
		<description></description>
		<content:encoded><?php 
                echo wxr_cdata(apply_filters('the_content_export', $post->post_content));
                ?>
</content:encoded>
		<excerpt:encoded><?php 
                echo wxr_cdata(apply_filters('the_excerpt_export', $post->post_excerpt));
                ?>
</excerpt:encoded>
		<nxt:post_id><?php 
                echo $post->ID;
                ?>
</nxt:post_id>
		<nxt:post_date><?php 
                echo $post->post_date;
                ?>
</nxt:post_date>
		<nxt:post_date_gmt><?php 
                echo $post->post_date_gmt;
                ?>
</nxt:post_date_gmt>
		<nxt:comment_status><?php 
                echo $post->comment_status;
                ?>
</nxt:comment_status>
		<nxt:ping_status><?php 
                echo $post->ping_status;
                ?>
</nxt:ping_status>
		<nxt:post_name><?php 
開發者ID:nxtclass,項目名稱:NXTClass,代碼行數:67,代碼來源:export.php

示例14: export_wp


//.........這裏部分代碼省略.........
	<?php 
            $this->flush_export($full_path, false);
            if ($post_ids) {
                global $wp_query;
                $wp_query->in_the_loop = true;
                // Fake being in the loop.
                // fetch 20 posts at a time rather than loading the entire table into memory
                while ($next_posts = array_splice($post_ids, 0, 20)) {
                    $where = 'WHERE ID IN (' . join(',', $next_posts) . ')';
                    $posts = $wpdb->get_results("SELECT * FROM {$wpdb->posts} {$where}");
                    // Begin Loop
                    foreach ($posts as $post) {
                        setup_postdata($post);
                        $is_sticky = is_sticky($post->ID) ? 1 : 0;
                        ?>
	<item>
		<title><?php 
                        echo apply_filters('the_title_rss', $post->post_title);
                        ?>
</title>
		<link><?php 
                        the_permalink_rss();
                        ?>
</link>
		<pubDate><?php 
                        echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false);
                        ?>
</pubDate>
		<dc:creator><?php 
                        echo get_the_author_meta('login');
                        ?>
</dc:creator>
		<guid isPermaLink="false"><?php 
                        esc_url(the_guid());
                        ?>
</guid>
		<description></description>
		<content:encoded><?php 
                        echo wxr_cdata(apply_filters('the_content_export', $post->post_content));
                        ?>
</content:encoded>
		<excerpt:encoded><?php 
                        echo wxr_cdata(apply_filters('the_excerpt_export', $post->post_excerpt));
                        ?>
</excerpt:encoded>
		<wp:post_id><?php 
                        echo $post->ID;
                        ?>
</wp:post_id>
		<wp:post_date><?php 
                        echo $post->post_date;
                        ?>
</wp:post_date>
		<wp:post_date_gmt><?php 
                        echo $post->post_date_gmt;
                        ?>
</wp:post_date_gmt>
		<wp:comment_status><?php 
                        echo $post->comment_status;
                        ?>
</wp:comment_status>
		<wp:ping_status><?php 
                        echo $post->ping_status;
                        ?>
</wp:ping_status>
		<wp:post_name><?php 
開發者ID:netaustin,項目名稱:WordPress-CLI-Exporter,代碼行數:67,代碼來源:cli-exporter.php

示例15: dsq_export_wp


//.........這裏部分代碼省略.........
</wp:tag>
<?php 
        }
    }
    if (count($posts)) {
        global $wp_query, $post;
        $wp_query->in_the_loop = true;
        // Fake being in the loop.
        foreach ($posts as $post) {
            setup_postdata($post);
            ?>
<item>
<title><?php 
            echo apply_filters('the_title_rss', $post->post_title);
            ?>
</title>
<link><?php 
            the_permalink_rss();
            ?>
</link>
<pubDate><?php 
            echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false);
            ?>
</pubDate>
<dc:creator><?php 
            echo wxr_cdata(get_the_author());
            ?>
</dc:creator>
<?php 
            wxr_post_taxonomy();
            ?>

<guid isPermaLink="false"><?php 
            the_guid();
            ?>
</guid>
<description></description>
<content:encoded><?php 
            echo wxr_cdata(apply_filters('the_content_export', $post->post_content));
            ?>
</content:encoded>
<excerpt:encoded><?php 
            echo wxr_cdata(apply_filters('the_excerpt_export', $post->post_excerpt));
            ?>
</excerpt:encoded>
<dsq:thread_identifier><?php 
            echo dsq_identifier_for_post($post);
            ?>
</dsq:thread_identifier>
<wp:post_id><?php 
            echo $post->ID;
            ?>
</wp:post_id>
<wp:post_date><?php 
            echo $post->post_date;
            ?>
</wp:post_date>
<wp:post_date_gmt><?php 
            echo $post->post_date_gmt;
            ?>
</wp:post_date_gmt>
<wp:comment_status><?php 
            echo $post->comment_status;
            ?>
</wp:comment_status>
<wp:ping_status><?php 
開發者ID:Three20,項目名稱:Backend,代碼行數:67,代碼來源:export.php


注:本文中的the_guid函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。