dsu5188 2015-11-19 15:28
浏览 27

我必须编辑哪些页面来更改WP /个人资料页面中的文字?

I have 2 pages, /profile and /tarifs in WordPress site. What PHP script pages should I edit for changing text there? I have Filezilla and access for server. Or it can be done in admin?

  • 写回答

1条回答 默认 最新

  • doukong1897 2015-11-19 16:27
    关注

    in your current active theme .

    author.php
    

    if it not exesit add new one and cutomize it .

     <?php get_header(); ?>
    <div id="content" class="narrowcolumn">
    <!– This sets the $curauth variable –>
    <?php
    if(isset($_GET['author_name'])) :
    $curauth = get_userdatabylogin($author_name);
    else :
    $curauth = get_userdata(intval($author));
    endif;
    ?>
    <h2>About: <?php echo $curauth->nickname; ?></h2>
    <dl>
    <dt>Website</dt>
    <dd><a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></dd>
    <dt>Profile</dt>
    <dd><?php echo $curauth->user_description; ?></dd>
    </dl>
    <h2>Posts by <?php echo $curauth->nickname; ?>:</h2>
    <ul>
    <!– The Loop –>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <li>
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>">
    <?php the_title(); ?></a>,
    <?php the_time('d M Y'); ?> in <?php the_category('&');?>
    </li>
    <?php endwhile; else: ?>
    <p><?php _e('No posts by this author.'); ?></p>
    <?php endif; ?>
    <!– End Loop –>
    </ul>
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?> 
    

    Ref

    评论

报告相同问题?

悬赏问题

  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改
  • ¥20 wireshark抓不到vlan