• How to put wp elements such as the calendar and stuff on other pages than my actual blog like my sidebar or something? I heard you should put this:
    <?php
    /* Don’t remove this line. */
    require(‘./wp-blog-header.php’);
    ?> code on every page but I get a fatal error every time I do so.
    please help me!

Viewing 5 replies - 1 through 5 (of 5 total)
  • That is the right thing to include, but you need to get the path correct.

    If the other page will be in the same directory as your wp install, everything should work.
    If the other page is outside that directory, you need to get the path spot on.

    If you post details here we can help if you can’t get it all going.

    what do you mean by get the path spot on? can you please explain in details? if we put the header, will the plugins work on other pages as well??

    If the page you’re trying to put WordPress things into is in a another folder, you need to change the path so it gets it from the correct place.

    If your WordPress installation is in the root of your website then first you need to ‘back up’ out of your folder using:

    require('../wp-blog-header.php');

    (notice there are two dots at the beginning, not just one). If it’s installed in a folder called wordpress then you need to ‘back up’ then add the wordpress folder:

    require('../wordpress/wp-blog-header.php');

    i’m currently trying out Alex King’s Style Switcher on other pages in other directories, apart from my wordpress blog. In that case, how do I call that function? I’m having trouble with that now. If it helps, my site is http://www.momo4ever.com

    The page in other directory i’m having trouble with the plugin is http://www.momo4ever.com/lady/index.php

    Thread Starter Emelie

    (@emelie)

    Well this is the code to my menubar which I want to put wp elements in :

    <table width=100% cellspacing=1 style="border-collapse: collapse">
    <tr><td class="mtable1">
    Blog Statistics</tr></td>
    <tr><td class="mtable2">
    Coming soon..<BR>
    Archives
    </table>
    <BR>
    <table width=100% cellspacing=1 style="border-collapse: collapse">
    <tr><td class="mtable1">
    Listed At</tr></td>
    <tr><td class="mtable2">

    AcidGloss Glitter AllThingsSpiffy YetAnotherWebDirectory
    </tr></td>
    </table>
    <BR>
    <table width=100% cellspacing=1 style="border-collapse: collapse">
    <tr><td class="mtable1">
    Cliques</tr></td>
    <tr><td class="mtable2">
    <img src="http://killerqueen.org/images/sirius.gif" border=0><BR>
    i am an elven faerie<BR>
    </tr></td>
    </table>
    <BR>
    <table width=100% cellspacing=1 style="border-collapse: collapse">
    <tr><td class="mtable1">
    Thank You</tr></td>
    <tr><td class="mtable2">
    For Advertising:<BR><BR>
    MyVeracity.net<BR>
    simply-because.org/Em
    </tr></td>
    </table>
    <BR>

    <table width=100% cellspacing=1 style="border-collapse: collapse">
    <tr><td class="mtable1">
    Rotations</tr></td>
    <tr><td class="mtable2">
    <!--Begin BubblesSWAP Code-->

    <img src="http://banners.orbitcycle.com/banners/bubblessoc/Rainbow_Exchange/0000/a-8J899H.html" alt="BubblesSWAP" width="88" height="31" border="0" />

    <img src="http://killerqueen.org/images/swap_pink.gif" border="0" alt="Join the BubblesSWAP" width="88" height="12" />
    <!--End BubblesSWAP Code-->

    </tr></td>
    </table><BR>
    <table width=100% cellspacing=1 style="border-collapse: collapse">
    <tr><td class="mtable1">
    Blending at</tr></td>
    <tr><td class="mtable2">

    EL-Blends<BR>
    Perfect Blends<BR>
    That Girl Blends<BR>
    </tr></td>
    </table>
    <BR>
    <table width=100% cellspacing=1 style="border-collapse: collapse">
    <tr><td class="mtable1">
    Reviewed at</tr></td>
    <tr><td class="mtable2">

    Perfection Reviews<BR>
    </tr></td>
    </table>
    <BR>

    <table width=100% cellspacing=1 style="border-collapse: collapse">
    <tr><td class="mtable1">
    Admin</tr></td>
    <tr><td class="mtable2">

    WordPress <BR>
    Megabook <BR>
    Flinx <BR>
    Currently <BR>

    </tr></td>
    </table>

    This code I have included in the header file with an incluide like this: <? include(“menu.php”); ?>

    When I try to put this code: <?php
    /* Don’t remove this line. */
    require(‘../wordpress/wp-blog-header.php’);
    ?> on the top of the menu file I get this error : Fatal error: [] operator not supported for strings in /customers/killerqueen.org/killerqueen.org/httpd.www/wordpress/wp-blog-header.php on line 469 I don’t know what I’m doing wrong. someone help me!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘wp elements in other pages than my blog’ is closed to new replies.