Hey all. I’ve done this before, several times – but this time it’s a teensy bit different, and I can’t seem to figure out why it’s not working. I’ll try to explain everything in as much detail as I can.
1. I have WordPress in the root. The root URl would be:
2. I have a redirect going on. If I leave the redirect out, the site URL is like so:
but with the redirect, it’s:
site.com/someurl.org (it’s being tested right now, and will move to a new server soon). I don’t know if the redirect matters, but I thought I’d mention it.
3. I have a folder in the root, as well:
/somefolder – later this will be a subdomain of the main site (same folder name…so it’ll be somefolder.site.com)
In this folder, I have subfolders, each of which contain index pages. Each index page is going to be a “landing” page, and is calling in content from the WordPress setup. (so, an example of how the *current* URL – on the test area – would look: site.com/someurl.org/somefolder/sub/index.php…
where the WordPress url would be: site.com/someurl.org/)
4. Under Settings>Reading, I have a static home page and a post page both chosen.
Everything is being called in correctly – the theme is showing up just fine, all the images and stuff – BUT…none of the actual post content is showing up. I cannot figure out why.
Obviously, my call to the wp-blog-header is correct, since the header, footer and sidebar are all showing up as they should. But the call to the Loop seems to be malfunctioning. I cannot figure out why. Basically, these “outside of WordPress” landing pages are all copies (basically) of the Home page. So there’s a query in there to show only the most recent post in a particular category, another query to show the last 5 post links, and then the regular standard Loop – all of which I’ve done before many times (and is working just fine on the WP site, so I know the code is good) – but on these subfolders this stuff just isn’t showing up.
Is there some relative path that I need to insert somewhere that I’m not aware of? Like I said, the call o wp-blog-header.php *is* correct (as evidenced by everything else showing up just fine), and my code definitely works (since is *in* the WP area, and is working fine) but I’m not getting why the content isn’t showing up on the site that’s located outside of WordPress, within subfolders. Any ideas would be appreciated.
Boy, I hope that wasn’t too confusing – I was just trying to supply a lot of detail!
- The topic ‘Getting post info in a static page’ is closed to new replies.