Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter JamieLL

    (@jamiell)

    Hi Sam,

    I’ve fixed it… sorry to have wasted your time – it’s been great to get a response from you though.

    Last night I managed to display the_content by using ->the_content, however I still couldn’t get ->the_excerpt.

    I checked the excerpt column in MySQL and discovered that very few blog posts had an excerpt.

    I’ve checked through how excerpts work and discovered that there are automatic and manual excerpts working independently. I’ve changed my WP admin > screen settings and checked the excerpts box – now I have a field to enter excerpts beneath posts, and the script is collecting them ok.

    Thanks again for your help!

    Thread Starter JamieLL

    (@jamiell)

    just to add (in case it’s not clear – I can grab the_excerpt elsewhere on the same page.

    Thread Starter JamieLL

    (@jamiell)

    thanks again.

    It’s still only grabbing the_title()

    the_permalink works fine, and the else: works fine, it just won’t pick up the_excerpt or the_content.

    I’ve tested the script on a page which currently works with the following:

    <?php
    require_once($_SERVER['DOCUMENT_ROOT'].'/blog/wp-blog-header.php');
    ?>
    
    <?php query_posts('showposts=1&offset=5'); ?>
    <?php while (have_posts()) : the_post(); ?>
    <?php the_date(); echo "<br />"; ?>
    <b><a href="/blog.php#<?php the_title(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></b><br />
    <div style="color: #000; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 9pt; margin-left: 10px;"><?php the_excerpt(); ?></div>
    <?php endwhile;?><p>

    any more ideas?

    Thread Starter JamieLL

    (@jamiell)

    Thanks again. I now have…

    [please read http://codex.wordpress.org/Forum_Welcome#Posting_Code ]

    $tag="folding-chairs";
    
    // retrieve one post with a tag of folding-chairs
    query_posts( 'tag='.$tag );
    
    // the Loop
    while (have_posts()) : the_post();
    global $more;
    $more = 1;
    the_content('more...');
    endwhile;

    still not working.

    I’m wanting to pull blog entries with specific tags, into relevant product range pages. I wonder if there is another way around this.

    Thread Starter JamieLL

    (@jamiell)

    Thanks for your help. This continues- you can see my test page here…

    I removed the require_once(); and it killed the page – I’m pretty sure this is needed as this is the only reference to my WP blog in the page.

    I’ve tried a few different methods, and yours works – if I change the_content() to the_title()

    It works fine with the_title() but I need the_content()

    Seems very strange! Any ideas?

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