Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3441072
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:30:29+00:00 2026-05-18T08:30:29+00:00

I have an wordpress setup into /blog folder under my site directory. I have

  • 0

I have an wordpress setup into /blog folder under my site directory.

I have a .inc file for fetching the latest blog posts from wordpress to show into my site’s homepage.

But when i include that .inc file in my site’s homepage via php include, i get redirected to login page.

After a bit of debugging i found this query into the function is_blog_installed()

"SELECT option_value FROM $wpdb->options WHERE option_name = 'siteurl'"

which simply gives me this when i echo this –

SELECT option_value FROM options WHERE option_name = 'siteurl'

thats is the options table name is “options”, not “wp_options”, which means the table_prefix set in wp-config.php file is not being used.

I don’t know why this is happening. So, please help!

Thanks,
Anjan

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T08:30:29+00:00Added an answer on May 18, 2026 at 8:30 am

    Finally i found that it is because the database connectivity issue between my site and that of the wordpress. I resolved this by capturing the wordpress content using output buffering before any of my sites database connection is being made and using the captured wordpress html markup later when needed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have managed to setup a blog on localhost quickly using wordpress. But what
I have a wordpress site setup tradepeacefully.com i have postings that appear on the
i have a wordpress blog and want to give people the same user experience
I have a WordPress site (2.6.2) in which I have set the Home page
I'm starting a Wordpress Blog that will have adult content on it, so I'll
I have a Wordpress blog set up to display comments as Anonymous User by
I have setup my site with 5 pages which are my menu options. When
I'm using WordPress to make my users make their own website/blog. I have a
i am trying to setup a webmail login page into wordpress nevertheless i havent
I've setup the following: 1.Tailored wordpress into a cms. 2.Setup the wordpress multisite network

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.