Title: rstarr's Replies | WordPress.org

---

# rstarr

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Linking to next attachment from attachment page](https://wordpress.org/support/topic/linking-to-next-attachment-from-attachment-page/)
 *  [rstarr](https://wordpress.org/support/users/rstarr/)
 * (@rstarr)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/linking-to-next-attachment-from-attachment-page/#post-403998)
 * did u find an answer for this? I am trying to figure it out myself.
 * Thanks!
 *   Forum: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
   
   In reply to: [moved site to root and image paths did not change](https://wordpress.org/support/topic/moved-site-to-root-and-image-paths-did-not-change/)
 *  Thread Starter [rstarr](https://wordpress.org/support/users/rstarr/)
 * (@rstarr)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/moved-site-to-root-and-image-paths-did-not-change/#post-506741)
 * thanks for the info! when u say stored in the database, does that mean i use 
   php myadmin to eliminate the “subdir” part?
 * thank you
 *   Forum: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
   
   In reply to: [multiple loops with if statement syntax question](https://wordpress.org/support/topic/multiple-loops-with-if-statement-syntax-question/)
 *  Thread Starter [rstarr](https://wordpress.org/support/users/rstarr/)
 * (@rstarr)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/multiple-loops-with-if-statement-syntax-question/#post-496345)
 * Ok, how would i write the code just for this:
    If on page A, run this loop:
 * <div id=”pix”>
    <?php $my_query = new WP_Query(‘category_name=pix-1-photos&showposts
   =1’); ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <?
   php echo $post->post_content; ?> <?php endwhile; ?> </div>
 *   Forum: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
   
   In reply to: [multiple loops with if statement syntax question](https://wordpress.org/support/topic/multiple-loops-with-if-statement-syntax-question/)
 *  Thread Starter [rstarr](https://wordpress.org/support/users/rstarr/)
 * (@rstarr)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/multiple-loops-with-if-statement-syntax-question/#post-496338)
 * Yes, but i have pages with page content that is called from the main loop in 
   the page (based on page.php). Depending on what page it is, i want a second loop
   in the page to call a specific category loop. So the secondary loop code in the
   page template would say, if this page is A, loop category X, if this page is 
   B, loop category B. so all my code is in one page template.
 * I’m not sure how category templates would work here because i’m not calling a
   category page, rather a page based on page.php
 * does this make sense?

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