当前位置: 首页>>代码示例>>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;未经允许,请勿转载。