• I am looking for people who share the same experience as I am when you incorporate wp in my 3-column layout. See my website: fireworkszone.com

    I searched through forum threads but couldn’t find answers to my questions. I suggest to build a special FAQ for people with a design already created.

    I removed the header, footer and sidebar and included this code in my index.php:

    <?php
    define(‘WP_USE_THEMES’, true);
    require(‘./wp-blog-header.php’);
    ?>

    It works. Then, I tried to incorporate the calendar code inside the left column :

    <?php _e(‘Calendar’); ?>
    <?php get_calendar(); ?>

    But it doesn’t work. Furthermore how will I be able to call on all the sidebar’s items: search, archives, RSS Feeds, categories, etc.

    Do I have to include the sidebar.php in my left column? But If I want the search form on the right column and the RSS Feeds on the left?

    thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • You don’t have to include the whole sidebar in one place: just take the proper template tags to display whatever you want:
    http://codex.wordpress.org/Template_Tags
    You should be able to use the template tags in your left or right sidebar or whereever you wish (unless they are limited to be used only in the Loop – which is not the case of the calendar).

    Thread Starter fireworkszone

    (@fireworkszone)

    However when I insert the calendar tag in the left or right sidebar I get an error message:

    Fatal error: Call to undefined function: _e() in index.php on line 70

    Btw, where is the calendar function or file? And I have the same problem with the other tags: search form, categories list, etc. Each time I get the ‘undefined function’ error message.

    Please, help me.

    Seemingly there is something wrong how do you call the wp-blog-header. If that line is correct and correctly placed – all the WP template tags should work on your index file.

    Are the left and right sidebars part of your index or different files? If different, how are they called into?

    if you have an existing site design which you’d like to use with wordpress, you’ll need to develop your own WP “theme” to acomplish all of what you’re looking for. sidebar.php (which can either be left or right side) for example is a WP ‘default’ template file, for a three column layout you’ll need a lefbar.php and rightbar.php (leftside, rightside, whatever you want to call them), inside of those files you simply use the appropriate template tags (see the codex) to display what you need, you can also incorporate inside of those (as well as in the “main column” php file) any other features from other applications, etc, as needed.

    Thread Starter fireworkszone

    (@fireworkszone)

    Hi Moshu,

    1- As far as I know the call of the wp-blog-header is done correctly and placed correctly. If you checked my site you can see some posts from wordpress: http://www.fireworkszone.com

    <?php
    define(‘WP_USE_THEMES’, true);
    require(‘./wp-blog-header.php’);
    ?>

    If this is the right code why my existing footer disappeared? I tried several themes.

    2- Left and right sidebars are different files or part of the existing file.

    3- In the Adminstration > Write panel

    I can still write and post messages but I have this error message:

    Fatal error: Call to undefined function: wp_get_referer() in edit-form-advanced.php on line 214

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Installing WordPress in my own design’ is closed to new replies.