Wordpress site code is showing on live page

Discussion in 'HTML & Website Design' started by adawit20, Jun 17, 2013.

  1. #1
    I have code that is showing up on the live side of my wordpress website. This is the url for the website http://www.stonegateassociates.com/. See how there is code showing next to the rss icon at the bottom of the screenshot. How do I get rid of that? I made the site on wordpress.


    [​IMG]

    In the featured.php



    <div class="fr">
                        <ul class="pagination">
                            <?php $count_nav = 1; while ( $count_nav <= $count ) { ?>
                            <li <?php if ( $count_nav == 1 ) echo 'class="active"'; ?>><a href="#"></a></li>
                            <?php $count_nav++; } ?>
                        </ul>
                    </div>
                    <div class="fix"></div>
                </div><!-- /.col -->
            <!-- Infamia added social icons -->
            <div class="col-right" id="stonegate-social">
            <a class="twitter-social" href="https://twitter.com/@brad_stonegate" target="_blank"></a>
            <a class="in-social" href="http://www.linkedin.com/in/braddwin" target="_blank"></a>
            <a class="rss-social" href="http://www.stonegateassociates.com/feed" target="_blank"></a>
              <?php $feedurl = get_option('woo_feed_url');
              if ( !empty($feedurl) ) {
                      echo $feedurl;
              } else {
                      echo bloginfo('url') . "/?feed=rss2";
              }
    PHP:

    In theme functions




    <div id="breadcrumb">
            <div class="col-full">
                <div class="fl"><?php if ( function_exists('yoast_breadcrumb') ) yoast_breadcrumb('',''); ?></div>
    <div class="fr">
    <a class="twitter-social " href="https://twitter.com/@brad_stonegate" target="_blank"></a>
                    <a class="in-social" href="http://www.linkedin.com/in/braddwin" target="_blank"></a>
                    <a class="rss-social" href="http://www.stonegateassociates.com/feed" target="_blank"></a>
                      <?php $feedurl = get_option('woo_feed_url');
                      if ( !empty($feedurl) ) {
                              echo $feedurl;
                      } else {
                              echo bloginfo('url') . "/?feed=rss2";
                      }
                      ?>
     
     
    
    PHP:
     
    Solved! View solution.
    adawit20, Jun 17, 2013 IP
  2. #2
    Hi it is because of the echo from the code.. You can remove this bit of code from both the file

    Remove both 'echo' and refresh and check it.. It may help you..
     
    ShinoRex, Jun 17, 2013 IP
  3. adawit20

    adawit20 Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    Thank you so much! You are a life saver.
     
    adawit20, Jun 18, 2013 IP