我用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&
如何将帖子类型的首页作为Wordpress的首页提交?在设置中,Wordpress只允许页面作为首页。
Example:
Post type: Book
Post type slug: books
Post type index: archieve-books.php
我需要mydomain.com /book被称为mydomain.com的首页,谢谢。
我有一个宏,该宏在打印预览中打开报表,并显示当前记录。报表从此打印预览按钮所在的同一表单中提取信息。
问题是,有时“打印”按钮工作并打印单个报表记录,而另一些时候则以表单格式打印每条记录。
下面是链接到表单中一个按钮的代码:
Private Sub Print_Record_Click()
'Save and print record
On Error GoTo Err_Msg
CurrentDb.Execute "qryOrderQty", dbFailOnError
DoCmd.RunCommand acCmdSaveRecord
DoCmd.OpenRepo