Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter ericjohnson

    (@ericjohnson)

    Hi,

    I think there are still some bugs. The view results is still misaligned. Furthermore, when I choose no for the “show results link”, it still shows the link.

    Also, when resetting a template it, it sets it to the CSS of the default template. I tried uninstalling/deleting the old files, and it still has these bugs.

    Maybe it is just a conflict with my theme?

    Thanks

    Thread Starter ericjohnson

    (@ericjohnson)

    Hi Racer X,

    Thanks for the reply! You are right; my decision to show one post per category was a poor decision on taxonomy (hard explain unless you saw the nature of the site). I have decided just to use a custom post template to achieve what I was wanted.

    However, your explanations taught me about WordPress syntax so it was much appreciated.

    Thanks for your time!

    Btw, I hope you like 80’s speed metal!

    Thread Starter ericjohnson

    (@ericjohnson)

    Ha I see! I suppose every time I head Racer X I just think of the band.

    Regarding the code, I tried adding the if (have_Posts()) : to the front of my loop (before it was just while (have_posts()) : the_posts(); ), and I no longer get a parse error, but now it shows every single post whenever it does not enter a conditional!

    Is there a way to null my $args to show no posts? I am thinking I just need to plug that into my else statement.

    I actually tried changing $args to an arbitrary variable ($posts), but the query still uses all posts!

    Thanks!

    Thread Starter ericjohnson

    (@ericjohnson)

    Ok, thank you!

    Thread Starter ericjohnson

    (@ericjohnson)

    Hello,

    Thank you both for the reply!

    I have tried racer x’s (btw, Paul Gilbert is a god) code condensed as:

    <?php
    // first detect the category
    	if ( is_category(5) ) {
    		$args = 'p=644';
    	}
    	// next alter the main query
    	query_posts( $args );
    ?>

    And I am still getting a:

    Parse error: syntax error, unexpected T_ELSE

    <?php if ( have_posts() && is_category('5') ) : query_posts( 'p=644' ); ?>

    Still works fine, so I am confused as hell!

    Thread Starter ericjohnson

    (@ericjohnson)

    Of course! I always forget about the string interpolation rules!

    Thanks guys

    Thread Starter ericjohnson

    (@ericjohnson)

    Hi, thanks for your reply. What exactly do you mean by WP’s built-in image captions? Are you talking about the media upload feature of the visual editor?

    Because I did the changes to the CSS for all of the .entry img selectors, but nothing changed. I also tried inserting the image with the media/visual editor image feature, but it also had no changes after deleting the float left.

    What type of system do you recommend that I use then for the captioning?

    Thanks!

    Thread Starter ericjohnson

    (@ericjohnson)

    I forgot to add, this is my current image code in the post:

    <div class=”caption right”><img src=”/carseatprotector.jpg” width=”150″ alt=”Click for the Top 5 Car Seat Protectors” title=”Car Seat Protector”>Click for the Top 5 Car Seat Protectors</div>

    and this is my copied CSS code from the original guide:

    img.right { padding: 4px; margin: 0 0 2px 7px; display: inline; }
    img.left { padding: 4px; margin: 0 7px 2px 0; display: inline; }
    img.centered { display: block; margin-left: auto; margin-right: auto; }
    .right { float: right; }
    .left { float: left; }
    .caption { margin: 5px; padding: 5px; border: solid 1px #E5E5FF; background: #E5F2FF; font-size:90%; color: black }

    Thanks

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