最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

plugins - How to use WordPress header function and footer function and not load word press database

programmeradmin2浏览0评论

I am no longer able to access my database after including WordPress functions in my index.php file.

I used the following WordPress functions to access the WordPress header and footer

<?php
    @require '../wp-load.php';
    get_header(); 
    get_footer(); 

I need to use the WordPress header and footer and also use my external database without conflicting with each other.

ISSUE

I properly access the WordPress header and footer but now my EXTERNAL database is no longer accessible

Kindly help

发布评论

评论列表(0)

  1. 暂无评论