首页 文章

单页Wordpress模板

提问于
浏览
2

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

我的页面中有5个部分

  • 主页(滑块和内容)

  • 了解(内容标签)

  • 查看(具有可过滤效果的项目)

  • 阅读(博客和文章)

  • 谈话(联系表格)

我想让客户能够编辑页面上的大部分内容 .

请引导我开始吧 .

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

  • Edit*

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

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

2 回答

  • 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的网站

  • 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

相关问题