• Hey everyone, trying to get my feet wet using wordpress as a cms for the news bar of my site. I’m swapping php files out of a container div on the page controlled by some flash, when I load a page into the div the template tags don’t display at all. Turned off all my plugins to see if there was a conflict with javascript but that didn’t do it.

    You can see the pages here, clicking on the top left logo button you’ll see when the page is loaded the left news content doesn’t load again.
    http://copelandentertainment.com/stage/indexB.php

    Thanks for anyones help! Really enjoying WordPress versatility.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter di-rodge

    (@di-rodge)

    Anyone might have an idea? Using these simple template tags:

    <div class="news">
    
                <?php query_posts('showposts=3'); ?>
                <?php while (have_posts()) : the_post(); ?>
                <span class="news_title"><?php the_title(); ?></span>
                <?php the_excerpt(); ?>
               <span class="news_date"><?PHP the_modified_date('F j, Y');?></span>
                <?php endwhile;?>
    
                <a href="#" class="news_link"> <span class="arrows">>></span> More News</a>
    
        </div>

    you cant just “use” wordpress code inside stand alone files, Unless there is more to that than what you pasted above, its never going to work.

    http://codex.wordpress.org/Creating_a_Static_Front_Page

    read that, paying special attention to the bits that start at Integrating WordPress.

    Thread Starter di-rodge

    (@di-rodge)

    I’m using:

    <?php
    define('WP_USE_THEMES', false);
    require('../wp/wp-blog-header.php');
    ?>

    in the header to call WP. It loads standing alone, but once the same page is called via javascript into the div the tags don’t load. Thanks for the help!

    good good — at least youre doing that right. 🙂 Are these actual pages, ie..blah.php, that arent being generated on the fly? Or are they being generated on the fly?

    Thread Starter di-rodge

    (@di-rodge)

    theyre .php pages that exist, only dynamic content is the Posts being loaded into that sidebar.

    Can view the actual page with no css styling at:
    http://www.copelandentertainment.com/stage/_pages/home.php

    You can see right under the Search field is the three posts being displayed properly.

    Interesting — so the javascript is causing problems then. I dont know, sorry.

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

The topic ‘Template tags don’t show in loaded php’ is closed to new replies.