English 中文(简体)
变化不出现在活服务器上。 新闻网页模板
原标题:Changes does not appear on live server, WordPress page template

I have created a simple WordPress page template. I am working on live server. But something very strange is happening. When I make a change in the following code, that change does not appear on anywhere except in a browser where I m logged in as an administrator. I have tried to clear the cache, but the problem is same.

For example: I add a new tag in page <h2>Recent Posts</h2>. This recent post will appear in Firefox where I m logged in an administrator. It won t appear on my other computer s Firefox. Not in any other browser.

Note: - Clearing cache didn t work for me. - The page is published. - Source code of the page does not show any change either.

这里是法典。

<?php
    /*
    Template Name: testpage
    */
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
        <title></title>
        <base target="_parent" />
        <meta http-equiv="Pragma" content="no-cache">
        <meta http-equiv="Expires" content="-1">
        <meta http-equiv="CACHE-CONTROL" content="NO-CACHE">

    </head>
    <body>
        <div id="main">
            <ul class="latest_posts">
                <?php
                    $args = array(  numberposts  =>  10  );
                    $recent_posts = wp_get_recent_posts( $args );
                    foreach( $recent_posts as $post ):
                ?>
                    <li>
                        <a href="<?php echo get_permalink($post["ID"])?>" title="<?php echo $post["post_title"]?>" >
                            <?php echo $post["post_title"]?>
                        </a>
                        <span class="date"><?php the_time( d-M-Y )?></span>
                    </li>
                <?php
                    endforeach;
                ?>
            </ul>
        </div>
    </body>
</html>
最佳回答

背后有人安装了一种沥青。 我已经改变了其环境,不去页,现在我可以看到变化。

问题回答

暂无回答




相关问题
Wordpress hiding Post Div

I wanted to know how to make it possible that if there is no post i would like to be able to hide the DIV that controls the latest blog post only having them appear when someone post somethign on a ...

Echoing a string that contains PHP (in WordPress)

I have a custom field in WordPress called "thumb-url" which contains the exact location of an image. I want to only display the image if "thumb-url" contains the location of the image. I m start with ...

Display author URL in single.php

How can I display the author website in single.php template, only if the author has entered a URL in her/his profile. I m displaying the URL in author.php but the same code doesn t work in other ...

Looping through wordpress categories

I am new to Wordpress and been pulling my hair out trying to create a category loop. The loop is supposed to: loop through all categories echo out the category name (with link to echo out the last ...

How do I concatenate a string in a PHP Array Element?

I am customizing wordpress blog and I have a need to make custom sidebar widgets. My PHP is rusty at best. What I am trying to do is concatenate a php variable into a string being set as an array ...

Wordpress Navigation

I am working on a Wordpress Theme, I need to work on the navigation, I am having a little trouble creating it. The navigation I am looking for looks like this: www.neu.edu/humanities. I have gotten ...

WordPress > setting permalink option via script buggy?

My theme s custom options panel has the following code... ` /* initialize the site options */ if(get_option( permalink_structure )==""){update_option( permalink_structure , /%postname%/ );} ` This ...

热门标签