Footer not visible

时间:2019-05-30 作者:Harjinder Banga

这个页面可能有一些错误,这是一个首页,因为我无法看到页脚网站uitechnosoft。com公司

<!--==========================
Intro Section
============================-->
<section id="intro">
    <div class="intro-container">
        <div id="introCarousel" class="carousel  slide carousel-fade" data-ride="carousel">
            <ol class="carousel-indicators"></ol>
            <div class="carousel-inner" role="listbox">
                <!-- Slider One -->
                <div class="carousel-item active" style="background-image: url(\'<?php echo get_bloginfo(\'template_url\'); ?>/img/intro-carousel/1.jpg\');">
            <div class="carousel-container">
              <div class="carousel-content">
                <h2>Digital Marketing</h2>
                <p>
                  Brand identity, Web application development, Digital Marketing, UX Design and and Testing Agency
                  <span>Convert Visitors Into Customers And Generate More Sales</span>
                </p>
                <a href="#about" class="btn-get-started scrollto"><img src="<?php echo get_bloginfo(\'template_url\'); ?>/img/down_arrow.png" alt="arrow" /></a>
              </div>
            </div>
          </div>
          <!-- END -->
          <!-- Slider Two -->
          <div class="carousel-item" style="background-image: url(\'<?php echo get_bloginfo(\'template_url\'); ?>/img/intro-carousel/2.jpg\');">
            <div class="carousel-container">
              <div class="carousel-content">
                <h2>Website Development</h2>
                <p>
                  Brand identity, Web application development, Digital Marketing, UX Design and and Testing Agency
                  <span>Convert Visitors Into Customers And Generate More Sales</span>
                </p>
                <a href="#about" class="btn-get-started scrollto"><img src="<?php echo get_bloginfo(\'template_url\'); ?>/img/down_arrow.png" alt="down arrow" /></a>
              </div>
            </div>
          </div>
          <!-- END -->
          <!-- Slider Three -->
          <div class="carousel-item" style="background-image: url(\'<?php echo get_bloginfo(\'template_url\'); ?>/img/intro-carousel/3.jpg\');">
            <div class="carousel-container">
              <div class="carousel-content">
                <h2>User Expirence Design</h2>
                <p>
                  Brand identity, Web application development, Digital Marketing, UX Design and and Testing Agency
                  <span>Convert Visitors Into Customers And Generate More Sales</span>
                </p>
                <a href="#about" class="btn-get-started scrollto"><img src="<?php echo get_bloginfo(\'template_url\'); ?>/img/down_arrow.png" /></a>
          </div>
        </div>
      </div>
      <!-- END -->
      <!-- Slider Four -->
     <div class="carousel-item" style="background-image: url(\'<?php echo get_bloginfo(\'template_url\'); ?>/img/intro-carousel/4.jpg\');">
        <div class="carousel-container">
          <div class="carousel-content">
            <h2>Software Testing</h2>
            <p>
              Brand identity, Web application development, Digital Marketing, UX Design and and Testing Agency
              <span>Convert Visitors Into Customers And Generate More Sales</span>
            </p>
            <a href="#about" class="btn-get-started scrollto"><img src="<?php echo get_bloginfo(\'template_url\'); ?>/img/down_arrow.png" /></a>
          </div>
        </div>
      </div>
      <!-- END -->
      <!-- Slider Five -->
      <div class="carousel-item" style="background-image: url(\'<?php echo get_bloginfo(\'template_url\'); ?>/img/intro-carousel/5.jpg\');">
        <div class="carousel-container">
          <div class="carousel-content">
            <h2>Application Development</h2>
            <p>
              Brand identity, Web application development, Digital Marketing, UX Design and and Testing Agency
              <span>Convert Visitors Into Customers And Generate More Sales</span>
            </p>
            <a href="#about" class="btn-get-started scrollto"><img src="<?php echo get_bloginfo(\'template_url\'); ?>/img/down_arrow.png" /></a>
          </div>
        </div>
      </div>
      <!-- END -->
      <!-- Slider Six -->
      <div class="carousel-item" style="background-image: url(\'<?php echo get_bloginfo(\'template_url\'); ?>/img/intro-carousel/6.jpg\');">
        <div class="carousel-container">
          <div class="carousel-content">
            <h2>Graphics Design</h2>
            <p>
              Brand identity, Web application development, Digital Marketing, UX Design and and Testing Agency
              <span>Convert Visitors Into Customers And Generate More Sales</span>
            </p>
            <a href="#about" class="btn-get-started scrollto"><img src="<?php echo get_bloginfo(\'template_url\'); ?>/img/down_arrow.png" /></a>
          </div>
        </div>
      </div>
            <!-- END -->
        </div>

    </div>
</div>

<!--==========================
  About Us Section
============================-->

        <header class="section-header">
            <h3 class="left_align">
                <span>All about us </span>
                Our Story
            </h3>
            <div class="row">
                <div class="col-md-12 row">
                    <div class="col-md-8 pull-left">
                        <?php
                        $id = 84;
                        $post = get_post($id);
                        $content = apply_filters(\'the_content\', $post->post_content);
                        echo $content;
                        ?>
                    </div>
                    <div class="col-md-4 pull-left">
                        <img src="<?php echo get_bloginfo(\'template_url\'); ?>/img/about/about_img.png" alt="about">
                    </div>
                </div>
            </div>
        </header>


    </div>
</section><!-- #about -->


<!--==========================
  Services Section
============================-->
<section id="services">
    <div class="container">

        <header class="section-header wow fadeInUp">
            <h3>
                We help you to Grow your Business
                <span>Complete Web Solution</span>
            </h3>

        </header>

        <div class="row">
            <?php
            $args = array(\'posts_per_page\' => -1,
                \'offset\' => 1,
                \'category\' => 2,
                \'numberposts\' => -1
            );
            $catPost = get_posts($args);
            //$catPost = get_posts(get_cat_ID("homeService"));
            foreach ($catPost as $post) : setup_postdata($post); ?>


                <?php if (has_post_thumbnail($post->ID)): ?>
                    <?php $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), \'single-post-thumbnail\'); ?>

                    <div class="col-lg-4 col-md-6 box wow bounceInUp" data-wow-duration="1.4s">
                        <a href="digitalmarketing.html">
                            <div class="icon"><img src="<?php echo $image[0]; ?>" alt="digitalmarketing"/></div>
                            <h4 class="title"><a href="digitalmarketing.html"><?php the_title(); ?></a></h4>
                            <div class="description"><?php the_content(); ?></div>
                            <p class="description"><a href="<?php echo get_field(\'Page_URL\'); ?>">Learn More</a></p>
                        </a>
                    </div>
                <?php endif; ?>
            <?php endforeach; ?>
        </div>

    </div>
</section><!-- #services -->

<!--==========================
 Blog Section
============================-->
<section id="blog_container" class="wow fadeIn">
    <div class="container text-center section-header">
        <h3 class="left_align">From Our Blog</h3>
        <?php
       $args1 = array(\'posts_per_page\' => -1,
                \'offset\' => 1,
                \'category\' => 9,
                \'numberposts\' => -1
            );
        $catPost = get_posts($args1);
        //$catPost = get_posts(get_cat_ID("homeService"));
        foreach ($catPost as $post) : setup_postdata($post); ?>


            <?php if (has_post_thumbnail($post->ID)): ?>
                <?php $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), \'single-post-thumbnail\'); ?>
                <p class="description">
                    <b> <?php the_title(); ?></b>
                    <?php echo strip_tags(get_the_excerpt()); ?>
                </p>
                <img src="<?php echo $image[0]; ?>" alt="blog"/>

                <a class="cta-btn" href="<?php echo get_permalink(); ?>">Read Blog Post</a>
            <?php endif; ?>
        <?php endforeach; ?>
    </div>
</section><!-- #career -->

1 个回复
最合适的回答,由SO网友:gdarko 整理而成

如果单击“查看页面源代码”并向下滚动,您将看到您的代码在最后一行中断

 <p class="description"><a href="
看起来你想打电话get_field() 这是高级自定义字段功能,但可能不存在,因为插件未加载。尝试启用Advanced Custom Fields 插入并再次检查,或者您可以用WordPress本机替换整行get_post_meta() 作用

相关推荐

是否可以过滤wp_footer()脚本、读取内容并将其内联插入?

我需要截取添加在页脚中的脚本,并通过wp_footer() 和wp_head() 函数之类的add_filter(\'wp_footer\', my_function) 然后进来my_function, 我会检查name of the registered script 然后执行一个操作,在这种情况下,将读取script.js 文件并将其内联插入,如下所示:截取前(显示在页脚或页眉上):<script type=\"text/javascript\" src=\"mywp/wp-content/pl