]*>
]*>", "", wp_nav_menu(array('menu' => 31, 'echo' => false)) ));?>
��Ʒ����
publish;?>
��ʾ������
false ) );
foreach($menus as $menu){
$all_menu[$menu->ID] = $menu;
if($menu->menu_item_parent!=0){
$menu->count=get_category($menu->object_id)->count;
$menu_child[$menu->menu_item_parent]['child'][]=$menu;
}else{
$menu->count=get_category($menu->object_id)->count;
$menu_parent[$menu->ID] = $menu;
}
}
foreach($menu_parent as $m){
echo '- '.$m->title.' ('.$m->count.')';
if(is_array($menu_child[$m->ID]['child'])){
echo '';
}
echo '
';
}
���������Զ���ʾ��ǰ���ࣺ
-----------------------------------------------------------------------------------------------------------------------------------------------------------Footer����
'3code','showposts' => 1,'orderby' => 'post_date','order'=> 'DESC') ); while (have_posts()) : the_post();?>
SHOP:
465
-----------------------------------------------------------------------------------------------------------------------------------------------------------��ϵ��ʽ���ô���
-----------------------------------------------------------------------------------------------------------------------------------------------------------��Ʒ���ô���
1, 'showposts' => 9)); $i=1;while ( have_posts() ) : the_post(); ?>
1, 'showposts' => 9)); $i=1;while ( have_posts() ) : the_post();
$product=get_post_meta($post->ID,'_eshop_product');
$post->saleprice=get_currency_price($product[0][products][1][saleprice]);
$post->price=get_currency_price($product[0][products][1][price]);?>
'orderby' => 'rand',
�ö�
1, 'post__in' => $sticky, 'caller_get_posts' => 1 , 'showposts' => 9));
$i=1;while ( have_posts() ) : the_post(); ?>
-
" alt="post_title)), 0, 200,"..."); ?>">
12, 'post_type' => 'post', 'meta_query' => array( 'relation' => 'OR', array( 'key' => 'special','value' => 'Feature Products','compare' => 'LIKE')));
$the_query = new WP_Query( $args ); if( $the_query->have_posts() ): while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
1
ID;
$posttags = get_the_tags(); $i = 0;
if ( $posttags ) {
$tags = ''; foreach ( $posttags as $tag ) $tags .= $tag->term_id . ',';
$args = array(
'post_status' => 'publish',
'tag__in' => explode(',', $tags),
'post__not_in' => explode(',', $exclude_id),
'caller_get_posts' => 1,
'orderby' => 'comment_date',
'posts_per_page' => $post_num,
);
$the_query = new WP_Query( $args ); if( $the_query->have_posts() ){ while ( $the_query->have_posts() ) { $the_query->the_post(); ?>
2
ID; $i ++;
}} wp_reset_query();
}
if ( $i < $post_num ) {
$cats = ''; foreach ( get_the_category() as $cat ) $cats .= $cat->cat_ID . ',';
$args = array(
'category__in' => explode(',', $cats),
'post__not_in' => explode(',', $exclude_id),
'caller_get_posts' => 1,
'orderby' => 'comment_date',
'posts_per_page' => $post_num - $i
);
$the_query = new WP_Query( $args ); if( $the_query->have_posts() ){ while ( $the_query->have_posts() ) { $the_query->the_post(); ?>
3
No Related Products!';
?>
-----------------------------------------------------------------------------------------------------------------------------------------------------------ģ����ô���
'news','showposts' => 5,'orderby' => 'post_date','order'=> 'DESC') ); while (have_posts()) : the_post();?>
-----------------------------------------------------------------------------------------------------------------------------------------------------------�б�ҳ����
$image ):
if(!is_array($images[$key])){
$eric_id = $image;
$eric_urcs = wp_get_attachment_image_src($eric_id);
$eric_urc = $eric_urcs[0];
$image = array(
'id' => $eric_id,
'url' => $eric_urc,
'sizes' => array('thumbnail' => $eric_urc, )
);
$images[$key] = $image;
}
if (!$image['sizes']['thumbnail']) $image['sizes']['thumbnail'] = $srcs[0];
endforeach; endif;?>
����
����ͼ ID ), "thumbnail");echo $img_src[0];?>
���� post_title)), 0, 200,"..."); ?>
����
ժҪ
�Զ������
���� post_content)), 0, 600,"..."); ?>
����ͼ��
��ҳ
"/>
�������
Post time:
post_content)), 0, 200,"..."); ?> Read more »
-----------------------------------------------------------------------------------------------------------------------------------------------------------��ҳ����
����ijpage�����ݣ�
post_content), 0, 500,"..."); ?>
��־����
��־����
��־ժҪ
post_content)), 0, 600,"..."); ?>
ѯ�̵�ַ��
contact-us
��ʾ��ʽΪ��10-12-13�������
��ʾһƪ��־��ҳ�����������
") ?>
��ȡ����/��Ʒ����
publish;?>
���м
���һ���������ƣ�cat_name;?>
�Զ�����Ŀ
��������
term_id);
?>
All Product
ID,"code",true);?>
��ǩ����
�����tag���������ã�
cat_ID); ?>
���²�Ʒ������
|
url:
��ʾ�ղ�����
ID, $key, true);
echo $favorite_count_check." people like this post.";
?>
��������
����
��ҳ
%RATINGS_IMAGES_VOTE%', get_the_ID()); } ?>
�����
'rewrite' => array('slug' => 'products'),
����ģ�����
����ģ��
��ʾһƪ��־��ҳ������� ��
��ʾһƪ��־��ҳ���ID ��
��ǰurl
ADDthis���룺
��ʾwishlist��ť��
my-wishlist/">My Wishlist
������ǰ���룺
-----------------------------------------------------------------------------------------------------------------------------------------------------------ָ��ID����
����ָ��ID Page
post_content;?>
ID; // ���ҳ���ID
// post-thumbnails
// ID ��ҳ��ID��
// post_author ������ID
// post_date ��ʱ��
// post_content ��ҳ������
// post_title ��ҳ�����
// post_excerpt ��ҳ��ժҪ
// post_status ��ҳ��״̬����������ˣ����ܵȣ�
// comment_status ������״̬��������رգ�
// ping_status ��Ping״̬��������رգ�
// post_password ��ҳ������
// post_name ��ҳ������
// post_modified ��ҳ����ʱ��
// post_parent ��ҳ�游������
// guid ��ҳ��URl��ַ
// menu_order ������
// post_type ������Page
// comment_count ����������
?>
-----------------------------------------------------------------------------------------------------------------------------------------------------------���ķ�������
-----------------------------------------------------------------------------------------------------------------------------------------------------------���ֶβ������
$max_length ) {
$title_str = mb_substr($title_str,0,$max_length,'utf-8').'��';
}
return $title_str;
}?>
��Ͷ�����һ����������ε����أ�������Ҫʹ���������Ƶĵط�����ԭ�е�
�滻��
'knowledge','showposts' => 4,'tax_query' => array(array('taxonomy' => 'knowledge_catalog','terms' => 677),));
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) : $my_query->the_post();
$images = get_field('knowledge_gallery');
if( $images ): foreach( $images as $key=>$image ):
if(!is_array($images[$key])){
$eric_id = $image;
$eric_urcs = wp_get_attachment_image_src($eric_id);
$eric_urc = $eric_urcs[0];
$image = array(
'id' => $eric_id,
'url' => $eric_urc,
'sizes' => array('thumbnail' => $eric_urc, )
);
$images[$key] = $image;
}
if (!$image['sizes']['thumbnail']) $image['sizes']['thumbnail'] = $srcs[0];endforeach; endif;
?>
-
'gallery','cat' => $cat_ID, 'showposts' => 12)); $i=1;while ( have_posts() ) : the_post(); ?>
post_title)), 0, 500,"..."); ?>
�ֶ�text:
'ad_img','showposts' => 1,'orderby' => 'post_date','order'=> 'DESC') ); while (have_posts()) : the_post();?>
�༭��
ͼƬ
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
���
term_id);
?>
�����Զ�������һ��
�������
category_parent);
if (!empty($parent)) {
echo $parent;
} else {
echo $category[0]->cat_name;
}
?>
--------------------------------------
��ѡ��ť
��ѡ��
�ļ�
-----------------------------------------------------------------------------------------------------------------------------------------------------------��������
-----------------------------------------------------------------------------------------------------------------------------------------------------------���۲������
ֻ��ʾ���ǣ�
%RATINGS_IMAGES%', get_the_ID()); } ?>
-----------------------------------------------------------------------------------------------------------------------------------------------------------��ͼ����ͼչʾ����
" jqimg="ID ), "full");echo $img_src[0];?>" alt="" />
-----------------------------------------------------------------------------------------------------------------------------------------------------------������
-----------------------------------------------------------------------------------------------------------------------------------------------------------�ղ��б�ҳ
$favorite_post_ids, 'posts_per_page'=> $post_per_page, 'orderby' => 'post__in', 'paged' => $page)); ?>
', 'thisis' ) );
previous_posts_link( __( '