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 a wordpress site setup tradepeacefully.com i have postings that appear on the
I'm currently integrating information from a third party API into a wordpress site. What
I have setup a wordpress site on godaddy account. The registration form does not
I have just setup a wordpress forum and I find that all images are
I have wordpress a site with a customized login page, the problem is when
I have a (wordpress) blog where after commenting the users are redirected back to
I have a wordpress-generated page where I need some posts (in a specific category)
I have a WordPress installation on my site, and I want to display WP
I have a Wordpress blog set up to display comments as Anonymous User by
I have setup a custom post type in Wordpress. It is a section where

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.