Title: nomdeck's Replies | WordPress.org

---

# nomdeck

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Thumbnail by Custom Field vs Thumbnail by attached image?](https://wordpress.org/support/topic/thumbnail-by-custom-field-vs-thumbnail-by-attached-image/)
 *  Thread Starter [nomdeck](https://wordpress.org/support/users/nomdeck/)
 * (@nomdeck)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/thumbnail-by-custom-field-vs-thumbnail-by-attached-image/#post-1947892)
 * bump. any help por favor?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Thumbnail by Custom Field vs Thumbnail by attached image?](https://wordpress.org/support/topic/thumbnail-by-custom-field-vs-thumbnail-by-attached-image/)
 *  Thread Starter [nomdeck](https://wordpress.org/support/users/nomdeck/)
 * (@nomdeck)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/thumbnail-by-custom-field-vs-thumbnail-by-attached-image/#post-1947705)
 * here is what I have so far…half works. Only deteching custom field but no attachment
   URL
 *     ```
       <?php if ( get_post_meta($post->ID, "Thumbnail", true)) { ?>
       	<img class="thumb_left" src="<?php echo get_post_meta($post->ID, "Thumbnail", true);?>" />
       <?php } elseif ( wp_get_attachment_url( $post_ID )) { ?>
        	<img class="thumb_left" src="<?php wp_get_attachment_url( $post_ID );?>" />
       <?php }
       ?>
       ```
   
 * any ideas folks?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Using conditional tags to vary loop in sidebar?](https://wordpress.org/support/topic/using-conditional-tags-to-vary-loop-in-sidebar/)
 *  Thread Starter [nomdeck](https://wordpress.org/support/users/nomdeck/)
 * (@nomdeck)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/using-conditional-tags-to-vary-loop-in-sidebar/#post-1947117)
 * GOT IT. THANKS
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Using conditional tags to vary loop in sidebar?](https://wordpress.org/support/topic/using-conditional-tags-to-vary-loop-in-sidebar/)
 *  Thread Starter [nomdeck](https://wordpress.org/support/users/nomdeck/)
 * (@nomdeck)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/using-conditional-tags-to-vary-loop-in-sidebar/#post-1947108)
 * you mean something lik this?
    doesn’t seem to work for me :/ man i need to learn
   some PHP…
 *     ```
       <?php
        		 if ( is_page('baseball') ) { ?>
           		// custom loop for baseball
       		<?php query_posts('category_name=baseball');
       <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
       <li><a style="font-weight:bold;color:blue;" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a><br />
       <?php the_excerpt(); ?></li>
       <?php endwhile; ?><?php endif; ?>
   
       <?php } elseif ( is_page('football') ) { ?>
          		 // custom loop for Football
       		<?php query_posts('category_name=football'); ?>
       <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
   
       <li><a>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
       <?php the_excerpt(); ?></li>
       <?php endwhile; ?><?php endif; ?>
       <?php }
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Using conditional tags to vary loop in sidebar?](https://wordpress.org/support/topic/using-conditional-tags-to-vary-loop-in-sidebar/)
 *  Thread Starter [nomdeck](https://wordpress.org/support/users/nomdeck/)
 * (@nomdeck)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/using-conditional-tags-to-vary-loop-in-sidebar/#post-1947103)
 * still confused and assignment due soon. 🙁 please help
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Using conditional tags to vary loop in sidebar?](https://wordpress.org/support/topic/using-conditional-tags-to-vary-loop-in-sidebar/)
 *  Thread Starter [nomdeck](https://wordpress.org/support/users/nomdeck/)
 * (@nomdeck)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/using-conditional-tags-to-vary-loop-in-sidebar/#post-1947085)
 * bump. anyone?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Using conditional tags to vary loop in sidebar?](https://wordpress.org/support/topic/using-conditional-tags-to-vary-loop-in-sidebar/)
 *  Thread Starter [nomdeck](https://wordpress.org/support/users/nomdeck/)
 * (@nomdeck)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/using-conditional-tags-to-vary-loop-in-sidebar/#post-1947062)
 * Hi David, sorry one more question. 🙂 So i thought I had it and rushed home but
   because i’m so new to php,it looks somewhat ugly.
 * So here is what I have for one example:
    I copy pasted the custom loop so i’m
   not sure what i need in there and i don’t need… Thanks again in advance!
 *     ```
       <?php
        		 if ( is_page('baseball') ) {
           		// custom loop for baseball
       		<?php query_posts('category_name=baseball');
       <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
       <li><a style="font-weight:bold;color:blue;" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a><br />
       <?php the_excerpt(); ?></li>
       <?php endwhile; ?><?php endif; ?>
   
       } elseif ( is_page('football') ) {
          		 // custom loop for Football
       		<?php query_posts('category_name=football'); ?>
       <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
   
       <li><a>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
       <?php the_excerpt(); ?></li>
       <?php endwhile; ?><?php endif; ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Using conditional tags to vary loop in sidebar?](https://wordpress.org/support/topic/using-conditional-tags-to-vary-loop-in-sidebar/)
 *  Thread Starter [nomdeck](https://wordpress.org/support/users/nomdeck/)
 * (@nomdeck)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/using-conditional-tags-to-vary-loop-in-sidebar/#post-1947044)
 * Thanks David. funny enough, right after i posted my question, I found out what
   I was doing wrong.
 * Insrtead of using “is_page” i was using “is_category” and of course the page 
   doesn’t have a category, thus it wasn’t working.
 * I feel stupid now. 🙂
 * anyway, thanks again!

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