当前位置: 首页>>代码示例>>PHP>>正文


PHP the_content_rss函数代码示例

本文整理汇总了PHP中the_content_rss函数的典型用法代码示例。如果您正苦于以下问题:PHP the_content_rss函数的具体用法?PHP the_content_rss怎么用?PHP the_content_rss使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了the_content_rss函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: the_category_rss

)</dc:creator>
	<?php 
        the_category_rss('rdf');
        $more = 1;
        if ($rss_use_excerpt) {
            ?>
	<description><?php 
            the_excerpt_rss(get_settings('rss_excerpt_length'), 2);
            ?>
</description>
<?php 
        } else {
            // use content
            ?>
	<description><?php 
            the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2);
            ?>
</description>
<?php 
        }
        // end else use content
        ?>
	<content:encoded><![CDATA[<?php 
        the_content('', 0, '');
        ?>
]]></content:encoded>
</item>
<?php 
    }
}
?>
开发者ID:BackupTheBerlios,项目名称:nobunobuxoops-svn,代码行数:31,代码来源:wp-rdf.php

示例2: the_category_rss

	<?php 
        the_category_rss('rdf');
        $GLOBALS['more'] = 1;
        if (get_settings('rss_use_excerpt')) {
            ?>
	<description><?php 
            the_excerpt_rss(get_settings('rss_excerpt_length'), 2);
            ?>
</description>
<?php 
        } else {
            // use content
            ?>
	<description><?php 
            the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2);
            ?>
</description>
<?php 
        }
        // end else use content
        ?>
	<content:encoded><![CDATA[<?php 
        the_content_rss('', 0, '', 0, 3);
        ?>
]]></content:encoded>
</item>
<?php 
    }
}
?>
</rdf:RDF>
开发者ID:BackupTheBerlios,项目名称:nobunobuxoops-svn,代码行数:31,代码来源:wp-rdf.php

示例3: get_header

<?php

get_header();
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
				    <div class="post">
              <a class="post-title" href="<?php 
        echo the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a>
  				    <p class="post-content">
                <?php 
        the_content_rss();
        ?>
              </p>
            </div>
				<?php 
    }
} else {
    echo '<p>No content found</p>';
}
get_footer();
开发者ID:chelliah,项目名称:learning_wordpress_blog,代码行数:27,代码来源:index.php

示例4: header

}

header('Content-type: text/xml; charset=' . get_settings('blog_charset'), true);
$more = 1;

?>
<?php echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>'; ?>
<!-- generator="wordpress/<?php echo $wp_version ?>" -->
<rss version="0.92">
<channel>
	<title><?php bloginfo_rss('name') ?></title>
	<link><?php bloginfo_rss('url') ?></link>
	<description><?php bloginfo_rss('description') ?></description>
	<lastBuildDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), 0); ?></lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language><?php echo get_option('rss_language'); ?></language>

<?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>
	<item>
		<title><?php the_title_rss() ?></title>
<?php if (get_settings('rss_use_excerpt')) { ?>
		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
<?php } else { // use content ?>
		<description><?php the_content_rss('', 0, '', get_settings('rss_excerpt_length')) ?></description>
<?php } ?>
		<link><?php permalink_single_rss() ?></link>
	</item>
<?php $items_count++; if (($items_count == get_settings('posts_per_rss')) && empty($m)) { break; } } } ?>
</channel>
</rss>
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:30,代码来源:wp-rss.php

示例5: the_title_rss

    the_title_rss();
    ?>
</title>
<?php 
    if (get_option('rss_use_excerpt')) {
        ?>
		<description><![CDATA[<?php 
        the_excerpt_rss();
        ?>
]]></description>
<?php 
    } else {
        // use content
        ?>
		<description><?php 
        the_content_rss('', 0, '', get_option('rss_excerpt_length'));
        ?>
</description>
<?php 
    }
    ?>
		<link><?php 
    permalink_single_rss();
    ?>
</link>
		<?php 
    do_action('rss_item');
    ?>
	</item>
<?php 
}
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:31,代码来源:wp-rss.php

示例6: do_action

	<admin:generatorAgent rdf:resource="http://wordpress.org/?v=<?php echo $wp_version ?>"/>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
	<?php do_action('rdf_header'); ?>
	<items>
		<rdf:Seq>
		<?php while (have_posts()): the_post(); ?>
			<rdf:li rdf:resource="<?php permalink_single_rss() ?>"/>
		<?php endwhile; ?>
		</rdf:Seq>
	</items>
</channel>
<?php rewind_posts(); while (have_posts()): the_post(); ?>
<item rdf:about="<?php permalink_single_rss() ?>">
	<title><?php the_title_rss() ?></title>
	<link><?php permalink_single_rss() ?></link>
	 <dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_date_gmt, false); ?></dc:date>
	<dc:creator><?php the_author() ?></dc:creator>
	<?php the_category_rss('rdf') ?>
<?php if (get_option('rss_use_excerpt')) : ?>
	<description><?php the_excerpt_rss() ?></description>
<?php else : ?>
	<description><?php the_content_rss('', 0, '', get_option('rss_excerpt_length'), 2) ?></description>
	<content:encoded><![CDATA[<?php the_content('', 0, '') ?>]]></content:encoded>
<?php endif; ?>
	<?php do_action('rdf_item'); ?>
</item>
<?php endwhile;  ?>
</rdf:RDF>
开发者ID:staylor,项目名称:develop.svn.wordpress.org,代码行数:30,代码来源:wp-rdf.php

示例7: the_title

            the_title();
            ?>
</h2>
	         <?php 
            if (get_option('gallery-use-featured-content')) {
                ?>
					     <p><?php 
                $key = "featuredtext";
                echo get_post_meta($post->ID, $key, true);
                ?>
</p>
					  <?php 
            } else {
                ?>
					     <p><?php 
                the_content_rss('', 0, '', $wordquantity);
                ?>
</p>
					  <?php 
            }
            ?>
					  <a href="<?php 
            the_permalink();
            ?>
" title="Read More" class="open"></a>
					  <img src="<?php 
            $key = "articleimg";
            echo get_post_meta($post->ID, $key, true);
            ?>
" alt="<?php 
            $key = "alttext";
开发者ID:helixsun,项目名称:lwll,代码行数:31,代码来源:gallery.php

示例8: the_title

        ?>
" rel="bookmark" title="Permanent Link to <?php 
        the_title();
        ?>
"><?php 
        the_title();
        ?>
</a></h2> 
			<h3><?php 
        the_time('F jS, Y');
        ?>
</h3>
		</div>
		<div class="entrybody">
			<?php 
        the_content_rss('', TRUE, '', 22);
        ?>
		</div>
		
		<div class="entrymeta">Posted in <?php 
        the_category(', ');
        ?>
 | <?php 
        edit_post_link('Edit', '', ' | ');
        ?>
  <?php 
        comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;');
        ?>
		</div>
		
	</div>
开发者ID:bichhuynguyen,项目名称:template-development,代码行数:31,代码来源:archive.php

示例9: the_excerpt_rss

            ?>
		<summary type="text/html"><?php 
            the_excerpt_rss(get_settings('rss_excerpt_length'), 2);
            ?>
</summary>
<?php 
        } else {
            // use content
            ?>
		<summary type="text/html"><?php 
            the_content_rss('', 0, '', get_settings('rss_excerpt_length'), 2);
            ?>
</summary>
<?php 
        }
        // end else use content
        ?>
		<content type="text/html" mode="escaped" xml:base="<?php 
        permalink_single_rss();
        ?>
"><![CDATA[<?php 
        the_content_rss('', 0, '', 0, 1);
        ?>
]]></content>
	</entry>
	<?php 
    }
}
?>
</feed>
开发者ID:BackupTheBerlios,项目名称:nobunobuxoops-svn,代码行数:30,代码来源:wp-atom.php

示例10: the_title

    			
    		</div>

			<div class="text">
    			<div class="glyph"><div class="symbol"></div></div>
    			<div class="titleheading">
    			<h3><?php 
            the_title();
            ?>
</h3>
    			</div>
    			<div class="excerpt">
    			
	    		
			<?php 
            the_content_rss('', FALSE, '', 150);
            ?>
    			
    			
    			</div>
    			<div class="dateheading">
    			<?php 
            the_date();
            ?>
    			</div>
    			<div class="hiddendate">5<?php 
            //echo "-"; the_time('Ymd')
            ?>
</div>
    			<div class="hiddengroup"><?php 
            $category = get_the_category();
开发者ID:uwmadisoncals,项目名称:Horticulture-2015,代码行数:30,代码来源:index.php

示例11: while

</h2>
            <?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
            <article>
                <h3><a href="<?php 
        the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a></h3>
                <p><p><?php 
        the_content_rss('', true, '', 30);
        ?>
</p></p>
                <a href="<?php 
        the_permalink();
        ?>
"><?php 
        the_post_thumbnail();
        ?>
</a>
                <p class="post_meta"><?php 
        echo get_the_date();
        ?>
</p>
            </article>
           <?php 
开发者ID:pvt11a,项目名称:btour,代码行数:31,代码来源:category.php

示例12: printf

" title="<?php 
        printf(__('Read full post: %s', 'mim'), wp_specialchars(get_the_title(), 1));
        ?>
"><?php 
        the_title();
        ?>
</a>&#160;<span><?php 
        unset($previousday);
        the_date('Y-m-d', '', '');
        ?>
</span></h2>
<?php 
        if ($postcount < $highlightposts && is_home() && !is_paged()) {
            ?>
	<div class="ec"><?php 
            the_content_rss('', true, '', 20, 2);
            ?>
</div>
<?php 
        }
        $postcount++;
    }
    if (mim_show_navigation()) {
        ?>
	<div class="nav"><?php 
        posts_nav_link(' | ', '&#171; Newer posts', 'Older posts &#187;');
        ?>
</div>
<?php 
    }
} else {
开发者ID:Turante,项目名称:wp-plugin-dev,代码行数:31,代码来源:index.php

示例13: while

<?php 
$items_count = 0;
while ($row = mysql_fetch_object($result)) {
    start_b2();
    ?>
		<item>
				<title><?php 
    the_title_rss();
    ?>
</title><?php 
    // we might use this in the future, but not now, that's why it's commented in PHP
    // so that it doesn't appear at all in the RSS
    //				echo "<category>"; the_category_unicode(); echo "</category>";
    ?>
				<description><?php 
    the_content_rss('', 0, '', $rss_excerpt_length, $rss_encoded_html);
    ?>
</description>
				<link><?php 
    permalink_single_rss();
    ?>
</link>
		</item>
<?php 
    $items_count++;
    if ($items_count == $posts_per_rss && empty($m)) {
        break;
    }
}
?>
开发者ID:ericandrewlewis,项目名称:b2,代码行数:30,代码来源:b2rss.php

示例14: widget_simplr_recent_entries

function widget_simplr_recent_entries($args)
{
    global $wpdb, $comments, $comment;
    extract($args);
    $options = get_option('widget_simplr_recent_entries');
    $title = empty($options['title']) ? __('Recent Entries', 'simplr') : $options['title'];
    $count = empty($options['count']) ? __('5', 'simplr') : $options['count'];
    global $wpdb, $r;
    $r = new wp_query("showposts={$count}");
    if ($r->have_posts()) {
        ?>
		<?php 
        echo $before_widget;
        ?>
			<?php 
        echo $before_title;
        echo $title;
        echo $after_title;
        ?>
			<ul><?php 
        while ($r->have_posts()) {
            $r->the_post();
            ?>

				<li class="hentry" onclick="location.href='<?php 
            the_permalink();
            ?>
';">
					<span class="entry-title"><a href="<?php 
            the_permalink();
            ?>
" title="Continue reading <?php 
            get_the_title();
            the_title();
            ?>
" rel="bookmark"><?php 
            get_the_title();
            the_title();
            ?>
</a></span>
					<span class="entry-summary"><?php 
            the_content_rss('', TRUE, '', 10);
            ?>
</span>
					<span class="entry-date"><abbr class="published" title="<?php 
            the_time('Y-m-d\\TH:i:sO');
            ?>
"><?php 
            unset($previousday);
            printf(__('%1$s', 'simplr'), the_date('F jS, Y', false));
            ?>
</abbr></span>
					<span class="entry-comments"><?php 
            comments_popup_link(__('No comments', 'simplr'), __('One comment', 'simplr'), __('% comments', 'simplr'));
            ?>
</span>
				</li>
			<?php 
        }
        ?>

			</ul>
		<?php 
        echo $after_widget;
    }
}
开发者ID:Anks,项目名称:simplr,代码行数:66,代码来源:functions.php

示例15: the_permalink

    ?>
    
            <li>
              <span class="highlightlink"><img src="http://wakingideas.com/wordpress/wp-content/themes/wakingideas/images/icon_track.png" alt="link" /> <a href="<?php 
    the_permalink();
    ?>
" title="Permalink to <?php 
    the_title();
    ?>
" rel="bookmark"><?php 
    the_title();
    ?>
</a>
              </span>
              <?php 
    the_content_rss('', TRUE, '', 30);
    ?>
            </li>
          <?php 
}
?>
      </ul>    
    </div>

    <div id="sidebar"> 
      <h3>Outside the Box</h3>
      <ul>
      <?php 
c2c_get_recent_posts($num_posts = 5, $format = "<li><span class=\"linkauthor\">%post_author%</span> <br /> <div class=\"linkdesc\"><img src=\"http://wakingideas.com/wordpress/wp-content/themes/wakingideas/images/icon_track.png\" alt=\"link\" /> %post_content%</div></li>", $categories = '7');
?>
      </ul>
开发者ID:jakedahn,项目名称:witheme,代码行数:31,代码来源:sidebar.php


注:本文中的the_content_rss函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。