wordpress无插件纯代码调用最新文章

<?php $this->widget('Widget_Contents_Post_Recent', 'pageSize=6')->to($contents); ?>
<?php while($contents->next()): ?>

			<div class="mportfoliobox">
				<!-- mportfoliobg will enable the background image which is seen on mouse over -->
				<!-- Portfolio Block One-->
				<div class="mportfolio mportfoliobgvideo"><!-- The line for prettyphoto lightbox -->
					<a href="<?php $contents->permalink() ?>">
						<!-- Class fade will enable fade in out -->
						<img class="fade" src="<?php Fimg_Plugin::showfimg($contents->cid,1);?>" alt="<?php $contents->title() ?>" />
					</a>
				</div>
				<!-- Contents -->
				<div class="portfoliotitle clear"><?php $contents->title() ?></div>
				<div class="portfoliocontents"><span class="portleft"><a href="<?php $contents->cid(); ?>.html" target="_blank">在线演示</a> <a href="<?php Fimg_Plugin::showfimg($contents->cid,2);?>">图片演示</a></span><span class="portright"><a href="<?php Fimg_Plugin::showfimg($contents->cid,3);?>">模板下载</a></span></div>
			</div>

<?php endwhile; ?>

相关文章

我想将wordpress的默认接口路由改掉,愿意是默认的带一个 wp...
wordpress自定义分类法之后,我看到链接都自动在后面添加了一...
事情是这样的,我用 get_post_type 函数创建了一个自定义分类...
最近网站莫名其妙的被顶上了,过一个多小时,就注册一个账号...
最近服务器要到期了,就想着把网站转移到另外一台服务器,本...
今天在写wordpress的接口,然后碰到个奇怪的问题,怎么访问都...