前页后页
文章多了,翻看之前的文章就成了问题
自己其实是很懒的,有了上次sending referrers问题的经历,
我就懒得动手去找,动脑去想了,呵呵…
在MA-YUE.net上问完老马,就有点后悔,觉得自己实在是很弱智,
还好意思说自己也算是搞程序的。
WordPress提供了很方便的函数:< ?php posts_nav_link(); ?>
我不懂PHP,但是有过ASP的经验,怎么说对这种解释型的脚本语言还算不陌生,
我想< ?php ?> 这样的迁入式标记就像ASP的< % %>一样。
本以为在MainPage文件中加入函数后就万事大吉,
可是结果是并没有如预想那样正常显示。
搜索了一下blogsome forum,发现函数是这样使用的:
{posts_nav_link separator=’,’ previous=’< <' next='>>’}
似乎{和}替代了< ?php ?>,为什么呢?
在工作之余有限的时间找了半天,也没有答案,管理员说:
为了安全考虑,blogsome并不建议用户自己添加PHP编码。
可能展现在用户面前可编辑的MainPage其实已经解释了?
不管了,先用再说…
When post became more on my website, the problem about how to show more post is very necessary.
I want to know how to do it, but I shouldn’t find reason by myself, maybe, indolence.
after ask for ma yue on internet, I regreted it.
I think I can do it myself, why not do ? I’m be ashamed of my mind.
ok! Let’s go back to the subject about how to get next or previous post.
< ?php posts_nav_link(); ?> , a convenient WordPress function.
however, when I inserting the < ?php posts_nav_link(); ?> tag just after the {$content} but nothing shows up, why? I don’t know…
through search blogsome forum, I found that correct type is {posts_nav_link separator=’,’ previous=’< <' next='>>’}
it seems that you should use ‘{’ and ‘}’ for opening and closing, and not the standard php ones ‘< ?php' and '>‘ , I am not familiar with php code…












Ninjaboy WebBlog Site
testcomment192
Comment by testanchor874 — October 16, 2005 @ 1:58 am