English 中文(简体)
内容提要
原标题:Wordpress as a CMS, calling content Issue

因此,我是在我的第一声望现场工作的。

I am having a go at converting http://www.benjaminpotter.org/fleet/ to wordpress > http://www.benjaminpotter.org/test/

因此,已经存在几个问题,但其中一个问题是,我想要通过文字压力把内容放在指数页的“我们”部分中,以作为CMS。

这是后端的形象:

“entergraph

不过,该款没有内容:

“enterography

之所以如此,最有可能是因为我需要把一部分代码放在网站的网页上。

这是目前这一页的代码,我已经评论过,我想说的是内容的载人范围。 感谢帮助!

<? /* Template Name: Home Page
*/ ?>


<?php get_header(); ?> 





  <div id="tagline"></div>

    <div id="sliderbox">

        <img src="<?php bloginfo( template_url ); ?>/images/index/slider/slider_1.jpg" width="1000" height="466" alt="Don t settle for less" />

        <img src="<?php bloginfo( template_url ); ?>/images/index/slider/slider_2.jpg" width="1000" height="466" alt="Don t settle for less" />

        <img src="<?php bloginfo( template_url ); ?>/images/index/slider/slider_3.jpg" width="1000" height="466" alt="Don t settle for less" />

        <img src="<?php bloginfo( template_url ); ?>/images/index/slider/slider_4.jpg" width="1000" height="466" alt="Don t settle for less" />

  </div>

    <a id="arrow2" class="arrow"></a>

    <a id="arrow1" class="arrow"></a>

    <a href="order.php" id="car_logo_slider" onmouseover="tooltip.show(  );" onmouseout="tooltip.hide();">

        <img src="<?php bloginfo( template_url ); ?>/images/index/car_slider/cars1.jpg" width="1001" height="86" alt="cars" />

        <img src="<?php bloginfo( template_url ); ?>/images/index/car_slider/cars2.jpg" width="1001" height="86" alt="cars" />

        <img src="<?php bloginfo( template_url ); ?>/images/index/car_slider/cars3.jpg" width="1001" height="86" alt="cars" />

    </a>

<div id="wrapper-contunue">

<div id="mission_vision_header"></div>

        <? include( inc/quickcontact.html ); ?>

        <div id="mission_vision_text">

            <!-- THE CONTENT MANAGED BIT! -->
            <!-- THE CONTENT MANAGED BIT! -->
            <!-- THE CONTENT MANAGED BIT! -->
            <!-- THE CONTENT MANAGED BIT! -->
            <!-- THE CONTENT MANAGED BIT! -->

        </div>

        <div style="margin-top:450px;" class="seperator"></div>

        <div id="our_process" class="highlighed_div">

            <div id="our_process_header"></div>

            <div id="initial_text_our_process">

            Here at Fleet Avenue, we have a simple and straight forward process towards acquiring our cars for you. This four step process is fast and effective, consisting of the following steps:

            </div>

            <div id="our_process_stages_graphic"></div>

            <div id="explanatiory_text_our_process">

                <div id="process_inquire">

                    <a id="inquire_button" href="order.php"></a>

                </div>


            </div> <?php get_footer(); ?> 
问题回答
<?php echo get_content(); ?>

<?php
global $post;
echo $post->post_content;
?>

i 相信你需要把你召集到Wordpress loop()中。

<?php
if ( have_posts() ) {
    while ( have_posts() ) {
        the_content();
    } // end while
} // end if
?>

如果你再发出其他呼吁,你需要重新发出问询呼吁,这是一个非常基本的例子。

http://codex.wordpress.org/The_Loop” rel=“nofollow”





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签