Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter Graphics

    (@graphics)

    i dont know, I’ll try it and let you know.

    thanx-

    Thread Starter Graphics

    (@graphics)

    exploding-boy-

    I only want to supply the 1 cat. feed to other sites, does your fix mean i should make an “index2.php” page, so that I can keep the normal feed everywhere else?

    Thread Starter Graphics

    (@graphics)

    BIG THANKS!
    apparently the first time i tried it, it was “user error”
    one or two more fixes and i’ll be stylin!

    Thread Starter Graphics

    (@graphics)

    both gave this error

    Parse error: parse error, unexpected T_STRING in /usr/local/apache2/vhosts/osga/feedtest.php on line 44

    Thread Starter Graphics

    (@graphics)

    it didnt work, gave me MySql errors.

    heres the code i am using: ( link at bottom probaby wont be written out due to the way this forum handle code)

    ‘<td>
    <?php define(‘WP_USE_THEMES’, false);
    require(‘./wordpress/wp-blog-header.php’);
    ?>
    <div id=”content” class=”narrowcolumn”>

    <h2>Lastest Posts:</h2>

    <?php
    # Here starts Mini Loop trick: You can use this code, but _at your own risk_
    # If you want to improve this code, you’re welcome ??
    $how_many=7; //How many posts do you want to show ?>

    <ul align=’left’>
    <?
    $news=$wpdb->get_results(“SELECT ID,post_title FROM $wpdb->posts
    WHERE post_status = \”publish\” ORDER BY ID DESC LIMIT “.$how_many);
    foreach($news as $np){
    printf (“<li align=’left’>%s“, $np->ID,$np->post_title,$np->post_title);
    }?>

    </div>
    </td>’

    Thread Starter Graphics

    (@graphics)

    i hate to sound stupid…
    but to php i am.
    where would i place
    either of these tags to make them work, in accordance with the code i am using?

    Thread Starter Graphics

    (@graphics)

    Take a look at my earlier post “I’m Sooooo close…”
    Its only a few down the list.

    essentially, the mini-loop code i got from the Codex creates a list, but its justified “center”
    and i wanted it justified “left”

    more importantly, i had to IFRAME the php page i put the mini-loop code in, cause my static page wasn’t accepting the php code itself, but the headline links all open in the
    IFRAME window, not a new window, like i need.

    i tried to use the html align and target tags, but they don’t work , all i see when i refresh the static page is an error message

    Thread Starter Graphics

    (@graphics)

    had to pull the “<a” out of the link

    Thread Starter Graphics

    (@graphics)

    STILL F_UP one more time

    <td>
    <?php define(‘WP_USE_THEMES’, false);
    require(‘./wordpress/wp-blog-header.php’);
    ?>
    <div id=”content” class=”narrowcolumn”>

    <h2>Lastest Posts:</h2>

    <?php
    # Here starts Mini Loop trick: You can use this code, but _at your own risk_
    # If you want to improve this code, you’re welcome ??

    $how_many=7; //How many posts do you want to show ?>
    <ul class=”whats-new”>
    <?
    $news=$wpdb->get_results(“SELECT ID,post_title FROM $wpdb->posts
    WHERE post_status = \”publish\” ORDER BY ID DESC LIMIT “.$how_many);
    foreach($news as $np){
    printf (”

    • href=\”bloghome.htm?p=%s\”>%s
    • “, $np->ID,$np->post_title);
      }?>

      </div>

      </td>

    Thread Starter Graphics

    (@graphics)

    Sorry!! the code f-up when I pasted it in,
    heres the code:

    <td>
    <?php define(‘WP_USE_THEMES’, false);
    require(‘./wordpress/wp-blog-header.php’);
    ?>
    <div id=”content” class=”narrowcolumn”>

    <h2>Lastest Posts:</h2>

    <?php
    # Here starts Mini Loop trick: You can use this code, but _at your own risk_
    # If you want to improve this code, you’re welcome ??

    $how_many=7; //How many posts do you want to show ?>
    <ul class=”whats-new”>
    <?
    $news=$wpdb->get_results(“SELECT ID,post_title FROM $wpdb->posts
    WHERE post_status = \”publish\” ORDER BY ID DESC LIMIT “.$how_many);
    foreach($news as $np){
    printf (”

    • %s
    • “, $np->ID,$np->post_title);
      }?>

      </div>

      </td>

    I would like to do the same thing, but my homepage isn’t php, just html

    what code do I USE?

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