如何将帖子类型的首页作为Wordpress的首页提交?在设置中,Wordpress只允许页面作为首页。
Example:
Post type: Book
Post type slug: books
Post type index: archieve-books.php
我需要mydomain.com /book被称为mydomain.com的首页,谢谢。
我用wordpress循环创建了一个页面模板作为我的首页/首页,代码如下:
<?php query_posts('posts_per_page=10'); ?>
<?php
/* Run the loop to output the posts.
* If you want to overload this in a child theme then include a file
* called loop-index.php and that will be used instead.
*/
get_template_part( 'loop&
我用Titanium开发示例android应用程序。在首页窗口(app.js)它有一些按钮,现在我想要的是点击每个按钮app.js(首页窗口)必须调用另一个javascript文件(他们将创建自己的新窗口。
but.addEventListener('click', function(e){
call another .js file which will open new window
})
将会感谢一些指导
在JavaScript中,我们可以获得一个表示当前日期/时间的数字,如下所示:
var dt = new Date();
var e = dt.getTime();
一种稍微短一点的手动方法可能是:
var f = (new Date()).getTime();
执行此操作的最简洁方法反映在以下代码中:
var g = +new Date; //11 bytes shorter
(在这里查看他们的工作:)
现在,当你搜索谷歌首页的源代码时,你会发现第二个约定被使用了11次。因此,谷歌似乎每次都可以节省11个字节-总共121个字节。
压缩和缓存将在缓解这一问题上发挥作用,但对于Google来说