如何将插件网址从localhost更改为网站

时间:2016-07-27 07:34:42

标签: php jquery wordpress plugins

我想知道,我有一个网站tashapedersen.com

如果单击“事件”选项卡,它仍然认为它在localhost中,

我不知道在哪里可以更改网址,或者在此实例中如何调用localhost。

  1. 使用Events Calendar插件,我无法像普通的wordpress页面那样编辑页面,但实际上如果你输入tashapedersen.com/events然后打开页面,所以我不认为它在插件端。在某处断开了。

  2. 当我上传网站时,我已经“找到并替换了”数据库中的所有localhost标题。

  3. 我想知道这是否可能在phpmyadmin的某个地方?

  4. 如果您知道的话,我会非常感谢您在此处找到解决此问题的方法以及解决方法。

    谢谢

    詹姆斯

    这里有一些template-loader.php

    if ( defined('WP_USE_THEMES') && WP_USE_THEMES )
    /**
     * Fires before determining which template to load.
     *
     * @since 1.5.0
     */
    do_action( 'template_redirect' );
    
    if ( 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters(   'exit_on_http_head', true ) )
    exit();
    
    
    do_action( 'do_robots' );
    return;
    elseif ( is_feed() ) :
    do_feed();
    return;
    elseif ( is_trackback() ) :
    include( ABSPATH . 'wp-trackback.php' );
    return;
    endif;
    
    if ( defined('WP_USE_THEMES') && WP_USE_THEMES ) :
      $template = false;
    if     ( is_embed()          && $template = get_embed_template()          )      :
    elseif ( is_404()            && $template = get_404_template()            ) :
    elseif ( is_search()         && $template = get_search_template()         ) :
    elseif ( is_front_page()     && $template = get_front_page_template()     ) :
    elseif ( is_home()           && $template = get_home_template()           ) :
    elseif ( is_post_type_archive() && $template = get_post_type_archive_template() ) :
    elseif ( is_tax()            && $template = get_taxonomy_template()       ) :
    elseif ( is_attachment()     && $template = get_attachment_template()     ) :
        remove_filter('the_content', 'prepend_attachment');
    elseif ( is_single()         && $template = get_single_template()         ) :
    elseif ( is_page()           && $template = get_page_template()           ) :
    elseif ( is_singular()       && $template = get_singular_template()       ) :
    elseif ( is_category()       && $template = get_category_template()       ) :
    elseif ( is_tag()            && $template = get_tag_template()            ) :
    elseif ( is_author()         && $template = get_author_template()         ) :
    elseif ( is_date()           && $template = get_date_template()           ) :
    elseif ( is_archive()        && $template = get_archive_template()        ) :
    elseif ( is_paged()          && $template = get_paged_template()          ) :
    else :
        $template = get_index_template();
    endif;
    
    if ( $template = apply_filters( 'template_include', $template ) ) {
        include( $template );
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
      return;
    endif;
    

0 个答案:

没有答案