Support » Fixing WordPress » getting my includes to work

  • UGH! I have tried almost everything that i know and still the header for my pages on my siote does not work:

    why isnt the header workinks. feel free to view source.

    the actual header coding is:

    <?php wp_head(); ?>
    <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” />
    <link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”alternate” type=”text/xml” title=”RSS .92″ href=”<?php bloginfo(‘rss_url’); ?>” />
    <link rel=”alternate” type=”application/atom+xml” title=”Atom 0.3″ href=”<?php bloginfo(‘atom_url’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
    <meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />

    <LINK REL=stylesheet HREF=”” TYPE=”text/css”>
    <div style=”position:absolute; top:0; left:0;”>
    <img src=”” border=”0″>

    <div id=”menu” style=”position:absolute; width:165px;left: 63px; top: 521px”>

    <?php get_sidebar(); ?>

    <div id=”menu” class=”content” style=”position:absolute; width:407px;left: 236px; top: 521px”>

    if anyone can help it is greatly appreciated!!!!


Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Samuel Wood (Otto)

    (@otto42) Admin

    What in the heck is “pinkg.php”?

    The error you are getting is that wp_head() is undefined, suggesting that you’re not actually going through and loading WordPress correctly in the first place. I suspect this is due to your use of your own “pinkg.php” or whatever that is.

    What are you trying to do here?

    Its for my website. its pink gradients. I azm trying to get the page to have the header on the top. sorry im kinda a wp newbie.

    what do i do with wp_head()?

    hmm never mind i guess. ill just create the pages as wp pages.

    Fatal error:
    Call to undefined function: bloginfo() /home/mikestah/public_html/rochelle/wordpress/wp-content/themes/default/header.php

    It seems that there is no function bloginfo defined.

    What are we looking at? A wordpress-blog? Did you include parts of wordpress in a different php-file?

    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    I azm trying to get the page to have the header on the top. sorry im kinda a wp newbie.

    Ah. No worries. Leave the code as is and add this to the very top of pinkg.php:

    <?php require('your_wordpress_dir/wp-blog-header.php'); ?>

    This will include wordpress into your code, thus giving you access to all of its functionality. Well, most of its functionality, anyway.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘getting my includes to work’ is closed to new replies.