Title: ericjohnson's Replies | WordPress.org

---

# ericjohnson

  [  ](https://wordpress.org/support/users/ericjohnson/)

 *   [Profile](https://wordpress.org/support/users/ericjohnson/)
 *   [Topics Started](https://wordpress.org/support/users/ericjohnson/topics/)
 *   [Replies Created](https://wordpress.org/support/users/ericjohnson/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/ericjohnson/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/ericjohnson/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/ericjohnson/engagements/)
 *   [Favorites](https://wordpress.org/support/users/ericjohnson/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YOP Poll] 100% Width Poll and Bug](https://wordpress.org/support/topic/100-width-poll-and-bug/)
 *  Thread Starter [ericjohnson](https://wordpress.org/support/users/ericjohnson/)
 * (@ericjohnson)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/100-width-poll-and-bug/#post-3269301)
 * 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
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Querying posts based on category](https://wordpress.org/support/topic/querying-posts-based-on-category/)
 *  Thread Starter [ericjohnson](https://wordpress.org/support/users/ericjohnson/)
 * (@ericjohnson)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/querying-posts-based-on-category/#post-3269483)
 * 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!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Querying posts based on category](https://wordpress.org/support/topic/querying-posts-based-on-category/)
 *  Thread Starter [ericjohnson](https://wordpress.org/support/users/ericjohnson/)
 * (@ericjohnson)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/querying-posts-based-on-category/#post-3269481)
 * 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!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YOP Poll] 100% Width Poll and Bug](https://wordpress.org/support/topic/100-width-poll-and-bug/)
 *  Thread Starter [ericjohnson](https://wordpress.org/support/users/ericjohnson/)
 * (@ericjohnson)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/100-width-poll-and-bug/#post-3269293)
 * Ok, thank you!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Querying posts based on category](https://wordpress.org/support/topic/querying-posts-based-on-category/)
 *  Thread Starter [ericjohnson](https://wordpress.org/support/users/ericjohnson/)
 * (@ericjohnson)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/querying-posts-based-on-category/#post-3269479)
 * 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!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Unable to pass current category ID in paramter](https://wordpress.org/support/topic/unable-to-pass-current-category-id-in-paramter/)
 *  Thread Starter [ericjohnson](https://wordpress.org/support/users/ericjohnson/)
 * (@ericjohnson)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/unable-to-pass-current-category-id-in-paramter/#post-2150510)
 * Of course! I always forget about the string interpolation rules!
 * Thanks guys
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Captioning and Space Problem](https://wordpress.org/support/topic/captioning-and-space-problem/)
 *  Thread Starter [ericjohnson](https://wordpress.org/support/users/ericjohnson/)
 * (@ericjohnson)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/captioning-and-space-problem/#post-2014559)
 * 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!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Captioning and Space Problem](https://wordpress.org/support/topic/captioning-and-space-problem/)
 *  Thread Starter [ericjohnson](https://wordpress.org/support/users/ericjohnson/)
 * (@ericjohnson)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/captioning-and-space-problem/#post-2014402)
 * 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”>](http://www.carseatprotector.net/the-top-five-car-seat-protectors/)
   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)