本文整理汇总了PHP中custom_excerpt函数的典型用法代码示例。如果您正苦于以下问题:PHP custom_excerpt函数的具体用法?PHP custom_excerpt怎么用?PHP custom_excerpt使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了custom_excerpt函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_the_author
?>
</h4>
</div>
<div class="nicdark_focus nicdark_bg_orange">
<div class="nicdark_bg_orangedark nicdark_focus nicdark_padding1020 nicdark_sizing nicdark_width_percentage50">
<p class="white"><i class="icon-user"></i> <?php
echo get_the_author();
?>
</p>
</div>
<div class="nicdark_focus nicdark_padding1020 nicdark_sizing nicdark_width_percentage50">
<p class="white"><i class="icon-chat"></i> No Comments</p>
</div>
</div>
<div class="nicdark_focus nicdark_border_grey nicdark_sizing nicdark_padding20">
<p><?php
custom_excerpt('maxchar=350');
?>
</p>
<div class="nicdark_space20"></div>
<a class="nicdark_btn nicdark_press nicdark_bg_orange white medium uppercase" href="<?php
echo get_the_permalink();
?>
">Подробнее</a>
</div>
</div>
</div>
示例2: get_query_var
$event_slug = $event->post_name;
$event_search_term = get_query_var('project-event');
if (!$event_search_term || $event_slug == $event_search_term) {
$found_projects = true;
?>
<li>
<div class="box-content">
<h4><a href="<?php
the_permalink();
?>
"><?php
the_title();
?>
</a></h4>
<?php
custom_excerpt(30);
?>
<footer>
<?php
if ($challenge !== '0' && !empty($challenge->post_title) || !empty($challenge_other)) {
?>
<h5>Challenge</h5>
<?php
if ($challenge !== '0' && !empty($challenge->post_title)) {
?>
<p><?php
echo $challenge->post_title;
?>
</p>
<?php
} else {
示例3: get_the_title
</small></a>
<div class="nicdark_displaynone_responsive nicdark_width_percentage40 nicdark_focus">
<div class="nicdark_space1"></div>
</div>
<div class="nicdark_width100_responsive nicdark_width_percentage60 nicdark_float_right nicdark_bg_white nicdark_border_grey nicdark_sizing">
<div class="nicdark_textevidence nicdark_bg_grey nicdark_borderbottom_grey">
<h4 class="grey nicdark_margin20"><?php
echo get_the_title();
?>
</h4>
</div>
<div class="nicdark_margin20">
<p><?php
custom_excerpt('maxchar=100');
?>
</p>
<div class="nicdark_space20"></div>
<a class="nicdark_btn nicdark_press nicdark_bg_blue white small uppercase" href="<?php
echo get_the_permalink();
?>
">Подробнее</a>
</div>
</div>
</div>
<!--end preview-->
示例4: get_template_directory_uri
echo '<img src=' . get_template_directory_uri() . '/images/fallback/' . $other_thumb . '.gif alt="No Image Avaliable">';
}
?>
</a>
</div>
<div class="post-container">
<h2 class="post-title"><a href="<?php
the_permalink();
?>
" rel="bookmark"><?php
the_title();
?>
</a></h2>
<div class="post-excerpt">
<?php
custom_excerpt($excerpt_length);
?>
</div>
</div>
<div class="post-meta">
<span class="comments"><?php
comments_popup_link('0', '1', '%', '', '');
?>
</span>
<span class="author"><?php
the_author_posts_link();
?>
</span>
<span class="pdate"><a href="<?php
the_permalink();
?>
示例5: get_posts_slider
function get_posts_slider()
{
global $post, $wp_query;
$output = '';
$options = get_option('sf_flexform_options');
$posts_slider_type = get_post_meta($post->ID, 'sf_posts_slider_type', true);
$posts_category = get_post_meta($post->ID, 'sf_posts_slider_category', true);
$portfolio_category = get_post_meta($post->ID, 'sf_posts_slider_portfolio_category', true);
$count = get_post_meta($post->ID, 'sf_posts_slider_count', true);
$args = array();
if ($posts_slider_type == "post") {
$category_list = get_category_list('category');
$slider_category = $category_list[$posts_category];
if ($slider_category == "All") {
$slider_category = "all";
}
if ($slider_category == "all") {
$slider_category = '';
}
$category_slug = str_replace('_', '-', $slider_category);
$args = array('post_type' => 'post', 'post_status' => 'publish', 'category_name' => $category_slug, 'posts_per_page' => $count);
} else {
if ($posts_slider_type == "hybrid") {
$args = array('post_type' => array('post', 'portfolio'), 'post_status' => 'publish', 'posts_per_page' => $count);
} else {
$category_list = get_category_list('portfolio-category');
$slider_category = $category_list[$portfolio_category];
if ($slider_category == "All") {
$slider_category = "all";
}
if ($slider_category == "all") {
$slider_category = '';
}
$category_slug = str_replace('_', '-', $slider_category);
$args = array('post_type' => 'portfolio', 'post_status' => 'publish', 'portfolio-category' => $category_slug, 'posts_per_page' => $count);
}
}
$slider_items = new WP_Query($args);
if ($slider_items->have_posts()) {
$output .= '<!--// SWIFT SLIDER //-->' . "\n";
$output .= '<div id="swift-slider" class="flexslider">' . "\n";
$output .= '<div class="swift-slider-loading"></div>' . "\n";
$output .= '<ul class="slides">' . "\n";
while ($slider_items->have_posts()) {
$slider_items->the_post();
$post_title = get_the_title();
$post_permalink = get_permalink();
$post_author = get_the_author_link();
$post_date = get_the_date();
$post_client = get_post_meta($post->ID, 'sf_portfolio_client', true);
$post_categories = get_the_category_list(', ');
if ($posts_slider_type == "portfolio") {
$post_categories = get_the_term_list($post->ID, 'portfolio-category', '', ', ');
}
$post_comments = get_comments_number();
$custom_excerpt = get_post_meta($post->ID, 'sf_custom_excerpt', true);
$post_excerpt = '';
if ($custom_excerpt != '') {
$post_excerpt = custom_excerpt($custom_excerpt, 20);
} else {
$post_excerpt = excerpt(20);
}
$posts_slider_image = rwmb_meta('sf_posts_slider_image', 'type=image&size=full');
$caption_position = get_post_meta($post->ID, 'sf_caption_position', true);
$accent_color = get_option('accent_color', '#fb3c2d');
$secondary_accent_color = get_option('secondary_accent_color', '#2e2e36');
$secondary_accent_alt_color = get_option('secondary_accent_alt_color', '#ffffff');
$media_image_url = "";
foreach ($posts_slider_image as $detail_image) {
$media_image_url = $detail_image['url'];
break;
}
if (!$posts_slider_image) {
$posts_slider_image = get_post_thumbnail_id();
$media_image_url = wp_get_attachment_url($posts_slider_image, 'full');
}
if (!$caption_position) {
$caption_position = "caption-right";
}
$image = aq_resize($media_image_url, 1920, NULL, true, false);
$output .= '<li>' . "\n";
$output .= '<div class="slide-caption-container">' . "\n";
if ($image) {
$output .= '<div class="flex-caption ' . $caption_position . '">' . "\n";
$output .= '<div class="flex-caption-details">' . "\n";
$output .= '<div class="caption-details-inner">' . "\n";
$output .= '<div class="details clearfix">' . "\n";
$output .= '<span class="date">' . $post_date . '</span>' . "\n";
if ($post_client != "") {
$output .= '<span class="item-client">' . __("Client: ", "swiftframework") . $post_client . '</span>' . "\n";
$output .= '<span class="item-categories">' . $post_categories . '</span>' . "\n";
} else {
$output .= '<span class="item-author">' . __("Posted by ", "swiftframework") . $post_author . '</span>' . "\n";
$output .= '<span class="item-categories">' . $post_categories . '</span>' . "\n";
}
$output .= '</div>';
if (comments_open()) {
$output .= '<div class="comment-chart chart" data-percent="1" data-count="' . $post_comments . '" data-barcolor="' . $secondary_accent_color . '"><span>0</span><i class="icon-comments"></i></div>' . "\n";
}
if (function_exists('lip_get_love_count')) {
//.........这里部分代码省略.........
示例6: widget
//.........这里部分代码省略.........
if ($post_type == 'all') {
$post_type_array = $post_types;
} else {
$post_type_array = $post_type;
}
if ($categories != 'all') {
$categories_array = array($categories);
}
?>
<?php
while ($recent_posts->have_posts()) {
$recent_posts->the_post();
?>
<div class="four column carousel-item">
<div class="carousel-images">
<?php
$post_format = get_post_format();
if (has_post_format('video') || has_post_format('gallery') || has_post_format('audio')) {
echo '<div class="carousel-icons">';
echo '<a href="' . esc_url(get_post_format_link($post_format)) . '">';
echo '<span title="' . get_post_format_string($post_format) . '" class="has-tip format-icon ' . $post_format . '-ico"></span>';
echo '</a>';
echo '</div>';
}
?>
<a href="<?php
the_permalink();
?>
" rel="bookmark" title="<?php
the_title();
?>
">
<?php
// Post Thumbnail
if (has_post_thumbnail()) {
the_post_thumbnail('carousel-thumb');
} else {
echo '<img src=' . get_template_directory_uri() . '/images/fallback/carousel-thumb.gif alt="No Image Avaliable">';
}
?>
</a>
</div>
<?php
if (!$gallery) {
?>
<div class="post-container">
<h2 class="post-title"><a href='<?php
the_permalink();
?>
' title='<?php
the_title();
?>
'><?php
the_title();
?>
</a></h2>
<div class="post-content"><p><?php
custom_excerpt('25');
?>
</p></div>
</div>
<div class="post-meta">
<?php
if (!post_password_required() && (comments_open() || get_comments_number())) {
?>
<span class="comments"><a href="#"><?php
comments_popup_link('0', '1', '%', '', '');
?>
</a></span>
<?php
}
?>
<span class="pdate"><a href="<?php
the_permalink();
?>
"><?php
the_time('F j, Y');
?>
</a></span>
</div>
<?php
}
?>
</div>
<?php
}
?>
</div>
</div>
</div>
<?php
}
?>
<?php
echo $after_widget;
}
示例7: the_post
the_post();
?>
<div class="">
<div class="">
<h2><a href="<?php
the_permalink();
?>
" title="<?php
the_title();
?>
"><?php
the_title();
?>
</a></h2>
<?php
custom_excerpt(70);
?>
<a href="<?php
the_permalink();
?>
" title="<?php
the_title();
?>
" class="btn"><?php
_e('Read more', 'ieseg2015');
?>
</a>
</div>
</div>
<?php
}
示例8: the_permalink
} else {
$length = 42;
}
?>
<div class="box-content">
<h4><a href="<?php
the_permalink();
?>
"><?php
the_title();
?>
</a></h4>
<div class="solution-excerpt">
<?php
custom_excerpt($length);
?>
</div>
<div class="solution-meta">
<h3>Challenge</h3>
<p><strong><?php
echo $challengeName->post_title;
?>
</strong></p>
<h3>Event</h3>
<p><strong><?php
echo $eventName->post_title;
?>
</strong></p>
示例9: content
protected function content($atts, $content = null)
{
$title = $width = $el_class = $output = $items = $item_figure = $el_position = '';
extract(shortcode_atts(array('title' => '', "pagination" => "no", "blog_type" => "standard", "excerpt_length" => '20', "item_count" => '5', "category" => '', 'el_position' => '', 'width' => '1/1', 'el_class' => ''), $atts));
// CATEGORY SLUG MODIFICATION
if ($category == "All") {
$category = "all";
}
if ($category == "all") {
$category = '';
}
$category_slug = str_replace('_', '-', $category);
// BLOG QUERY SETUP
global $post, $wp_query;
if (get_query_var('paged')) {
$paged = get_query_var('paged');
} elseif (get_query_var('page')) {
$paged = get_query_var('page');
} else {
$paged = 1;
}
$blog_args = array('post_type' => 'post', 'post_status' => 'publish', 'paged' => $paged, 'category_name' => $category_slug, 'posts_per_page' => $item_count);
$blog_items = new WP_Query($blog_args);
$list_class = '';
if ($blog_type == "masonry") {
$list_class .= 'masonry-items';
} else {
if ($blog_type == "mini") {
$list_class .= 'mini-items';
} else {
$list_class .= 'standard-items';
}
}
$items .= '<ul class="blog-items ' . $list_class . ' clearfix">';
while ($blog_items->have_posts()) {
$blog_items->the_post();
$post_format = get_post_format();
$post_title = get_the_title();
$post_author = get_the_author_link();
$post_date = get_the_date();
$post_categories = get_the_category_list(', ');
$post_comments = get_comments_number();
$post_permalink = get_permalink();
$custom_excerpt = get_post_meta($post->ID, 'coope_custom_excerpt', true);
$post_excerpt = '';
if ($custom_excerpt != '') {
$post_excerpt = custom_excerpt($custom_excerpt, $excerpt_length);
} else {
$post_excerpt = excerpt($excerpt_length);
}
$sidebar_config = get_post_meta($post->ID, 'coope_sidebar_config', true);
$thumb_image = $thumb_width = $thumb_height = $bordered_thumb_width = $bordered_thumb_height = $video = $video_height = $bordered_video_height = $item_class = $link_config = $item_icon = '';
if ($blog_type == "mini") {
if ($sidebar_config == "no-sidebars") {
$thumb_width = 446;
$thumb_height = NULL;
$video_height = 250;
} else {
$thumb_width = 290;
$thumb_height = NULL;
$video_height = 163;
}
} else {
$thumb_width = 640;
$thumb_height = NULL;
$video_height = 360;
$bordered_thumb_width = 408;
$bordered_thumb_height = 303;
$bordered_video_height = 303;
}
$thumb_type = get_post_meta($post->ID, 'coope_thumbnail_type', true);
$thumb_image = rwmb_meta('coope_thumbnail_image', 'type=image&size=full');
$thumb_video = get_post_meta($post->ID, 'coope_thumbnail_video_url', true);
$thumb_gallery = rwmb_meta('coope_thumbnail_gallery', 'type=image&size=blog-image');
$thumb_link_type = get_post_meta($post->ID, 'coope_thumbnail_link_type', true);
$thumb_link_url = get_post_meta($post->ID, 'coope_thumbnail_link_url', true);
$thumb_lightbox_thumb = rwmb_meta('coope_thumbnail_image', 'type=image&size=large');
$thumb_lightbox_image = rwmb_meta('coope_thumbnail_link_image', 'type=image&size=large');
$thumb_lightbox_video_url = get_post_meta($post->ID, 'coope_thumbnail_link_video_url', true);
foreach ($thumb_image as $detail_image) {
$thumb_img_url = $detail_image['url'];
break;
}
if (!$thumb_image) {
$thumb_image = get_post_thumbnail_id();
$thumb_img_url = wp_get_attachment_url($thumb_image, 'full');
}
$thumb_lightbox_img_url = wp_get_attachment_url($thumb_lightbox_image, 'full');
// LINK TYPE VARIABLES
if ($thumb_link_type == "link_to_url") {
$link_config = 'href="' . $thumb_link_url . '" class="link-to-url"';
$item_icon = "link";
} else {
if ($thumb_link_type == "link_to_url_nw") {
$link_config = 'href="' . $thumb_link_url . '" class="link-to-url" target="_blank"';
$item_icon = "link";
} else {
if ($thumb_link_type == "lightbox_thumb") {
$link_config = 'href="' . $thumb_img_url . '" class="view"';
$item_icon = "search";
//.........这里部分代码省略.........
示例10: get_the_title
$href = $file['url'];
echo '<a href="' . $resource . '" target="_blank">' . get_the_title() . '</a>';
}
if (!empty($resource)) {
$href = $resource;
$hrefCheck = substr($href, 0, 4);
if ($hrefCheck !== 'http') {
echo '<a href="http://' . $resource . '" target="_blank">' . get_the_title() . '</a>';
} else {
echo '<a href="' . $resource . '" target="_blank">' . get_the_title() . '</a>';
}
}
?>
</h3>
<?php
custom_excerpt(20);
?>
<p class="meta"><a href="<?php
echo $resource;
?>
"><?php
echo $resource;
?>
</a></p>
</div>
<div class="data-extra">
<?php
if (count($cats) > 0) {
foreach ($cats as $term) {
echo '<a href="' . get_bloginfo('url') . '/data-category/' . $term->slug . '">';
echo '<img src="' . get_template_directory_uri() . '/images/icons/jess3_intel_ndoch_microsite_' . str_replace('-', '', $term->slug) . '.svg">';
示例11: widget
function widget($args, $instance)
{
extract($args);
/* Set up some default widget settings. */
$defaults = array('num_posts' => __(4, num_posts));
$instance = wp_parse_args((array) $instance, $defaults);
/* Before widget (defined by themes). */
echo $before_widget;
$displayedTitle = "Related Content";
/* Display the widget title if one was input (before and after defined by themes). */
if ($title) {
$displayedTitle = $before_title . $title . $after_title;
}
?>
<div class="sideFindRelatedContent">
<h3><?php
echo $displayedTitle;
?>
</h3>
<ul class="relatedContentList">
<?php
// for use in the loop, list 4 post titles related to first tag on current post
$tags = wp_get_post_tags($GLOBALS['post']->ID);
if ($tags) {
$num_posts = apply_filters('num_posts', $instance['num_posts']);
$first_tag = $tags[0]->term_id;
$args = array('tag__in' => array($first_tag), 'post__not_in' => array($post->ID), 'post_type' => array('post', 'page'), 'posts_per_page' => $num_posts, 'ignore_sticky_posts' => 1);
$related_query = new WP_Query($args);
if ($related_query->have_posts()) {
while ($related_query->have_posts()) {
$related_query->the_post();
$pid = $post->ID;
$thumbId = get_post_thumbnail_id($pid);
$iurl = wp_get_attachment_url($thumbId);
?>
<li><a class="contentLink" href="<?php
the_permalink();
?>
">
<img class="contentThumb" src="<?php
echo $iurl;
?>
" alt="<?php
the_title();
?>
">
<?php
the_title();
?>
</a> <span class="contentBrief"><?php
echo custom_excerpt(10);
?>
</span></li>
<?php
}
}
wp_reset_query();
}
?>
</ul>
</div>
<!-- /.sideFindRelatedContent -->
<?php
echo $after_widget;
}
示例12: esc_url
echo '</a>';
echo '</div>';
echo '<div class="col-md-7 alm-content">';
echo '<div class="content">';
echo '<h2 class="entry-title">
<a href="' . esc_url(get_permalink()) . '">' . short_title("...", 15) . '</a></h2>';
?>
<?php
echo '<small class="author"><i>';
the_author();
echo '</i></small>';
?>
<!--/ The Date -->
<small class="date" style="margin-left:-4px;">
<i>
<?php
the_time('F j, Y');
?>
</i>
</small>
<?php
custom_excerpt('large_excerpt_length', 'ellipsis');
echo '<a href="' . esc_url(get_permalink()) . '" class="pull-right readmore">Read More ›</a>';
echo '</div>';
// content
echo '</div>';
?>
</div>
</div>
示例13: content
protected function content($atts, $content = null)
{
$options = get_option('sf_flexform_options');
$title = $category = $item_class = $excerpt_length = $width = $el_class = $output = $filter = $items = $el_position = '';
extract(shortcode_atts(array('title' => '', 'show_title' => 'yes', 'show_excerpt' => 'yes', "excerpt_length" => '20', "item_count" => '12', "show_details" => 'yes', "category" => 'all', 'el_position' => '', 'width' => '1/1', 'el_class' => ''), $atts));
// CATEGORY SLUG MODIFICATION
if ($category == "All") {
$category = "all";
}
if ($category == "all") {
$category = '';
}
$category_slug = str_replace('_', '-', $category);
global $post, $wp_query, $carouselID;
if ($carouselID == "") {
$carouselID = 1;
} else {
$carouselID++;
}
$blog_args = array('post_type' => 'post', 'post_status' => 'publish', 'category_name' => $category_slug, 'posts_per_page' => $item_count);
$blog_items = new WP_Query($blog_args);
$count = $columns = 0;
$sidebar_config = get_post_meta(get_the_ID(), 'sf_sidebar_config', true);
if ($sidebar_config == "left-sidebar" || $sidebar_config == "right-sidebar") {
$item_class = 'span2';
} else {
if ($sidebar_config == "both-sidebars") {
$item_class = 'span-bs-quarter';
} else {
$item_class = 'span3';
}
}
if ($width == "1/4") {
$columns = 1;
} else {
if ($width == "1/2") {
$columns = 2;
} else {
if ($width == "3/4") {
$columns = 3;
} else {
$columns = 4;
}
}
}
$items .= '<ul id="carousel-' . $carouselID . '" class="blog-items carousel-items clearfix" data-columns="' . $columns . '">';
while ($blog_items->have_posts()) {
$blog_items->the_post();
$item_title = get_the_title();
$post_author = get_the_author_link();
$post_date = get_the_date();
$post_comments = get_comments_number();
$post_categories = get_the_category_list(', ');
$thumb_type = get_post_meta($post->ID, 'sf_thumbnail_type', true);
$thumb_image = rwmb_meta('sf_thumbnail_image', 'type=image&size=full');
$thumb_video = get_post_meta($post->ID, 'sf_thumbnail_video_url', true);
$thumb_gallery = rwmb_meta('sf_thumbnail_gallery', 'type=image&size=thumb-image');
$thumb_link_type = get_post_meta($post->ID, 'sf_thumbnail_link_type', true);
$thumb_link_url = get_post_meta($post->ID, 'sf_thumbnail_link_url', true);
$thumb_lightbox_thumb = rwmb_meta('sf_thumbnail_image', 'type=image&size=large');
$thumb_lightbox_image = rwmb_meta('sf_thumbnail_link_image', 'type=image&size=large');
$thumb_lightbox_video_url = get_post_meta($post->ID, 'sf_thumbnail_link_video_url', true);
foreach ($thumb_image as $detail_image) {
$thumb_img_url = $detail_image['url'];
break;
}
if (!$thumb_image) {
$thumb_image = get_post_thumbnail_id();
$thumb_img_url = wp_get_attachment_url($thumb_image, 'full');
}
$thumb_lightbox_img_url = wp_get_attachment_url($thumb_lightbox_image, 'full');
$item_title = get_the_title();
$post_permalink = get_permalink();
$custom_excerpt = get_post_meta($post->ID, 'sf_custom_excerpt', true);
$post_excerpt = '';
if ($custom_excerpt != '') {
$post_excerpt = custom_excerpt($custom_excerpt, $excerpt_length);
} else {
$post_excerpt = excerpt($excerpt_length);
}
if ($thumb_link_type == "link_to_url") {
$link_config = 'href="' . $thumb_link_url . '" class="link-to-url"';
$item_icon = "link";
} else {
if ($thumb_link_type == "link_to_url_nw") {
$link_config = 'href="' . $thumb_link_url . '" class="link-to-url" target="_blank"';
$item_icon = "link";
} else {
if ($thumb_link_type == "lightbox_thumb") {
$link_config = 'href="' . $thumb_img_url . '" class="view"';
$item_icon = "search";
} else {
if ($thumb_link_type == "lightbox_image") {
$lightbox_image_url = '';
foreach ($thumb_lightbox_image as $image) {
$lightbox_image_url = $image['full_url'];
}
$link_config = 'href="' . $lightbox_image_url . '" class="view"';
$item_icon = "search";
} else {
//.........这里部分代码省略.........
示例14: get_post_type
$postType = get_post_type();
$headerText = 'General';
$excerpt = '';
if ($postType == 'post') {
$headerText = 'Blog';
$date = get_the_time('j \\d\\e\\ F \\d\\e\\ Y ');
$postAuthor = get_the_author_meta('display_name', $post->post_author);
$excerpt = get_the_excerpt();
} elseif ($postType == 'videos') {
$headerText = 'Video';
$excerpt = custom_excerpt(get_post_meta($post->ID, '_cmb2_sinopsis', true), 40);
$tax = ['director', 'prod_year'];
$meta = moebius_get_fields($tax);
} elseif ($postType == 'textos') {
$headerText = 'Texto';
$excerpt = custom_excerpt(get_post_meta($post->ID, '_cmb2_resumen', true), 40);
$tax = ['director', 'prod_year'];
$meta = moebius_get_fields($tax);
}
?>
<article id="post-<?php
the_ID();
?>
" <?php
post_class('m-all t-1of2 d-1of2 ld-1of3');
?>
role="article" itemscope itemprop="blogPost" itemtype="http://schema.org/BlogPosting">
<span class="gallery-post-type"><?php
echo $headerText;
?>
示例15: the_permalink
<li><a class="contentLink" href="<?php
the_permalink();
?>
">
<img class="contentThumb" src="<?php
echo $iurl;
?>
" alt="<?php
the_title();
?>
">
<?php
the_title();
?>
</a> <span class="contentBrief"><?php
echo custom_excerpt(10);
?>
</span></li>
<?php
}
}
wp_reset_query();
}
?>
</ul>
</div>
<!-- /.sideFindRelatedContent -->
<div class="sideQuote">
<p class="quoteTxt">“<?php
echo $quote;