在现有网站中零碎使用 WordPress?
在听取了这里的人关于在小型(六页)网站上使用 WordPress 的一些可靠建议后,我想提出另一个关于在非博客网站上使用 WordPress 的问题。然而,我知道我的客户希望不时更新其网站的各种但一小部分。
我不会将 WP 安装在根目录中,而是安装一个子目录,并将所有核心站点文件都放在根目录中。
以下是我的问题:
我可以在 WordPress 中包含 Pages 中的内容并将该内容输出到 WP 安装目录之外的任何页面上吗?是否需要包含一些特定内容?
我是否必须使用主题或者我仍然可以使用我已经构建的 CSS?
我希望能够在网站上使用我自己的 CSS,而不将其绑定到主题 - 这可能吗?这意味着我使用 www.example.com/css/styles.css 与 www.example.com/wp-content/themes/styles.css。
- 该特定页面吗?
我也可以自己查询数据吗?
有什么是我无法完成或建议不要做的吗?
我最担心的是必须使用主题,主要是因为我不知道是否需要使用它。
感谢您的任何帮助。
After some solid advice from people on here about using WordPress for a small (six page) website, I wanted to broach another question regarding using WordPress for a non-blogging site. Yet, I know my client would like to update various, but small portions of their site from time-to-time.
I won't be installing WP in the root, but a sub-directory and have all my core site files sitting in the root.
Here are my questions:
Can I include content from Pages in WordPress and output that content on any page outside of the WP install directory? Is there something specific I would need to include?
Do I have to use a Theme or can I still use my already built CSS?
I'd like to be able to use my own CSS for the site and not have it be tied to a Theme - is that possible? Meaning I use www.example.com/css/styles.css vs www.example.com/wp-content/themes/styles.css.
I also have a slider comprised of three DIVs for each panel, can I pull in that specific Page with that markup for the slider?
Can I also make my own queries for data as well?
Is there anything that I won't be able to accomplish or advise against doing?
I'm mostly concerned about having to use a Theme, mostly because I don't know if I'll need to use it or not.
Thanks for any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有很多可用的文档:
http://codex.wordpress.org/Moving_WordPress#Giving_WordPress_its_Own_Directory_While_Leaving_the_WordPress_Index_File_in_the_Root_Directory
和
http://codex.wordpress.org/Integrating_WordPress_with_Your_Website ,您可以在其中将 WP 循环中的页面/帖子拉入现有设计、CSS 等 。
您需要在站点中链接必要的 JS 文件
http://codex.wordpress.org/Function_Reference/query_posts 将向您展示如何制作自己的查询。
Lots of docs available:
http://codex.wordpress.org/Moving_WordPress#Giving_WordPress_its_Own_Directory_While_Leaving_the_WordPress_Index_File_in_the_Root_Directory
and
http://codex.wordpress.org/Integrating_WordPress_with_Your_Website , where you pull pages/posts from the WP loop into your existing design, CSS, etc.
You will need to link necessary JS files in the site.
http://codex.wordpress.org/Function_Reference/query_posts will show you how to make your own queries.