单页Wordpress模板

时间:2013-06-10 17:19:38

标签: wordpress wordpress-theming wordpress-3.5

我必须将以下HTML网站转换为Wordpress主题。我试图弄清楚如何根据页面/帖子/自定义模块和主题来构建主题。

我的页面中有5个部分

  1. 主页(滑块和内容)
  2. 了解(内容标签)
  3. 查看(具有可过滤效果的项目)
  4. 阅读(博客和文章)
  5. 谈话(联系表格)
  6. 我希望客户能够编辑页面上的大部分内容。

    请引导我开始使用。

    链接:http://play.mink7.com/sophiance/

    *的 修改 *

    我创建了一个名为'home'的页面,并在settings>reading>中选择了该网站作为网站的静态内容。

    接下来,我创建了一个名为template-home.php的模板,并选择了home来使用此模板。

2 个答案:

答案 0 :(得分:0)

你的index.php文件中的

放了5个部分。

在每个部分中 - 创建一个新的查询以拉取页面。

例如使用自定义帖子类型

  <section id="home">
    //Slider Content
<?php query_posts('pagename=home'); if ( have_posts() ) while ( have_posts() ) : the_post(); ?>//Loop Content
<?php endwhile; endif; wp_reset_query(); ?>
</section>

<section id="know">
<?php query_posts('pagename=know'); if ( have_posts() ) while ( have_posts() ) : the_post(); ?>//Loop Content
<?php endwhile; endif; wp_reset_query(); ?>
</section>

然后使用该名称创建每个页面,它将提取数据

我创建了一个类似here

的网站

答案 1 :(得分:0)

这就是构建Wordpress网站的方法:

Home (Slider and content) - create a page called Home and a custom page template called home

Know (tabs with content) - use a shortcode plugin to have tabbed content, default page template

View (Projects with filterable effect) - use a plugin that displays content in a masonry layout, default page template

Read (blog and articles) - create posts (under posts) and display them using the post archive.

Talk (contact Form) - use default page template and a plugin like Gravity Themes for the contact form

有关如何构建Wordpress网站的类似想法,请转到http://www.mybuzzmedia.net

相关问题