• I’m not exactly sure what the wp-blog-header really does, but I’m guessing it is the layout of the page when you put content in an page you put:
    require(‘./wp-blog-header.php’);
    And that will make the content kind of like a static page.
    With this assumption, I think the my wp-blog-header doesn’t always work. It works in the index file but not in the other ones. I have the wp-polls and wp-stats plugin from lesterchan.net installed but when I load up the files it just comes up as the plain text.
    ex: https://www.rv2.org/blog/wp-stats.php and https://www.rv2.org/blog/wp-polls.php .
    I’m guessing that the wp-blog-header should wrap all that content to look like the rest of the blog layout. Am I right, or am I just completely wrong and that those pages are supposed to like like they are?
    Thanks, Ryan.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter notryan

    (@notryan)

    The wp-polls.php and wp-stats.php are both in same folder as the index.php and they both are in php.

    wp-blog-header has nothing to do with presentation. It doesn’t create any markup at all. It initiates the background heavy lifting such as parsing the query and building the posts list. Layout is up to the file calling wp-blog-header.

    Thread Starter notryan

    (@notryan)

    So wp-blog-header has nothing to do with layout?

    Nope.
    How your blog looks is controlled by the CSS
    What the blog shows in terms of content is dealt with by PHP.
    If you want some content on a different page – content that WP generates – then by including wp-blog-header.php, you can have that content, but it’s the CSS (or whatever markup you use on that page) that will determine the layout / presentation.
    What are you trying to do ?

    Thread Starter notryan

    (@notryan)

    I just wanted my https://www.rv2.org/blog/wp-stats.php and https://www.rv2.org/blog/wp-polls.php pages to have their info loaded inside the blog. Because now, when I go those pages it’s just the info on a white background. I wanted those pages to load in the blog like https://www.lesterchan.net/blogs/wp-stats.php and https://www.lesterchan.net/blogs/wp-polls.php. His text is loaded in the blog where mines is just the text on a white background. To do that you use the line require(‘./wp-blog-header.php’); right?

    I checked my stats page, and I have no reference to the index in there, yet they appear ‘inside the blog’
    I guess he did it by using the rewrite rules he suggested:
    RewriteRule ^stats/author/(.*)?/page/?(.*)?/?$ /T2/index.php?wp_stats=1&author=$1&page=$2 [QSA]
    RewriteRule ^stats/author/?(.*) /T2/index.php?wp_stats=1&author=$1 [QSA]
    RewriteRule ^stats/ /T2/index.php?wp_stats=1 [QSA]
    RewriteRule ^stats /T2/index.php?wp_stats=1 [QSA]

    Thread Starter notryan

    (@notryan)

    So, my blog is broken? ??
    I did the rewrites my blog just doesn’t do it. I tried it on another blog and it does the same thing. So I guess, there’s no way to fix this for me.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘wp-blog-header not working?’ is closed to new replies.