Title: lisaharr's Replies | WordPress.org

---

# lisaharr

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Event Rocket] [event_embed category="nnn" template=path] doesnt reproduce the template…](https://wordpress.org/support/topic/event_embed-categorynnn-templatepath-doesnt-reproduce-the-template/)
 *  [lisaharr](https://wordpress.org/support/users/lisaharr/)
 * (@lisaharr)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/event_embed-categorynnn-templatepath-doesnt-reproduce-the-template/#post-5230060)
 * I really had hope this was the case as well. I have a huge site using TEC and
   having shortcodes would make life so much easier but I don’t want to style the
   same thing twice. If it brings in a template it should bring the accompanying
   styles.
 * Will this be available in the future?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Create a conditional logic inside an array](https://wordpress.org/support/topic/create-a-conditional-logic-inside-an-array/)
 *  Thread Starter [lisaharr](https://wordpress.org/support/users/lisaharr/)
 * (@lisaharr)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/create-a-conditional-logic-inside-an-array/#post-6173866)
 * It is actually bringing in my posts not the custom posts
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Create a conditional logic inside an array](https://wordpress.org/support/topic/create-a-conditional-logic-inside-an-array/)
 *  Thread Starter [lisaharr](https://wordpress.org/support/users/lisaharr/)
 * (@lisaharr)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/create-a-conditional-logic-inside-an-array/#post-6173865)
 * Thank-you for your reply. So it is pulling in all categories. Have I done it 
   correctly?
 * **Function:**
    function my_testimonial_map( $id ) { $relationship = array( ‘24655’
   => ‘200-hours-testimonial’, ‘24732’ => ‘300-hours-testimonial’, ‘24794’ => ‘300-
   hours-testimonial’, ‘about’ => ‘about-page’ ); if ( in_array( $id, $relationship)){
   return $relationship[$id]; } else { return false; } }
 * **Template:**
    <section> <ul id=”thumbnailGrid”> <?php $args=array( $testimonial_type
   = my_testimonial_map( get_the_ID() ) ); $my_query = null; $my_query = new WP_Query(
   $args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query-
   >the_post(); ?>
 *  <li class=”ft_promo col-md-3 col-sm-6″>
    <?php global $post; ?> <?php $src =
   wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array( 5600,1000),
   false, ” ); ?> <img src=”<?php echo $src[0]; ?>” /> <h3><?php the_title(); ?>
   </h3> <p><?php the_content(); ?></p>
 *  <?php
    endwhile; } wp_reset_query(); // Restore global post data stomped by 
   the_post(). ?> <div class=”clearfix”></div>
 * </section>

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