Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • What platform are you on? On Windows you could use something like TextPad to do a find and replace on the tags.

    Your table works okay when I paste it into a page.

    Attributes should be inside quotes, you could see if that helps, i.e.
    align=”right” instead of ALIGN=RIGHT

    Could try my reply for the same question here..
    Show Category Posts on PAGE

    If you’re happy to get your hands dirty, this will do the job for you. I’m no WP expert so this may not be the most elegant solution, but it will do what you want.

    Edit page.php in your theme folder to include the following before the closing </div>:

    <?php if($page_id==11) : ?>
    <?php query_posts('cat=2'); ?>

    Change the number 11 to the correct ID for your page, and change the number 2 to the correct ID for the category you want to display.

    Then add the following, which is just the standard post display lifted from index.php:<

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div class="post" id="post-<?php the_ID(); ?>">
    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
    <div class="entry">
    <?php the_content('Read the rest of this entry &raquo;'); ?>
    </div>
    <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>

    </div>
    <?php endwhile; ?>
    <?php endif; ?>

    and then close the IF statement that I added

    <?php endif; ?>

    That should do the job.
    Cheers
    n

    I’m also having problems with <p> tags being inserted where I don’t want them.
    I have unticked “WordPress should correct invalidly nested XHTML automatically”.
    One example is trying to write a post that simply contains an <a></a> tag. The template is going to wrap <p> tags around it, but WordPress is also inserting its own <p> tags so I end up with a double set.
    Is there anyway to turn this off and just have returned whatever I put in? Regardless of any other consideration, surely there must be a way to just have my db contents returned without tampering?

    Discovered the answer – there appears to be a bug in PHP 4.4.1, as referred to at the foot of this page in the codex..
    http://codex.ww.wp.xz.cn/Using_Permalinks
    and here
    http://bugs.php.net/bug.php?id=35059

    Switching to PHP 5.0.5 solved the problem for me.

    Also having problems here. I’m on Mac OSX 10.3.9 with XAMPP 0.5 for OSX.
    In httpd.conf I have
    LoadModule rewrite_module modules/mod_rewrite.so
    uncommented, and I’ve set every instance of AllowOveride to All.

    Permalinked urls just return a blank page (not a 404).

    Any help much appreciated!

    -n

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