Title: lochie1979's Replies | WordPress.org

---

# lochie1979

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [I want plain page with blog only](https://wordpress.org/support/topic/i-want-plain-page-with-blog-only/)
 *  Thread Starter [lochie1979](https://wordpress.org/support/users/lochie1979/)
 * (@lochie1979)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/i-want-plain-page-with-blog-only/#post-8553551)
 * The above code didn’t work. It only outputs the following:
 * Posts navigation
 * Older
    posts
 * Both ‘Older’ and ‘Posts’ are on seperate lines and link to the same thing but
   there is no news.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [I want plain page with blog only](https://wordpress.org/support/topic/i-want-plain-page-with-blog-only/)
 *  Thread Starter [lochie1979](https://wordpress.org/support/users/lochie1979/)
 * (@lochie1979)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/i-want-plain-page-with-blog-only/#post-8551101)
 * Thank you, I will give this a try. Where would I edit to select to only show 
   a certain category?
    -  This reply was modified 9 years, 6 months ago by [lochie1979](https://wordpress.org/support/users/lochie1979/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Simple custom shortcode problem](https://wordpress.org/support/topic/simple-custom-shortcode-problem/)
 *  Thread Starter [lochie1979](https://wordpress.org/support/users/lochie1979/)
 * (@lochie1979)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/simple-custom-shortcode-problem/#post-5153497)
 * still same issue but latest version of the code is:
 *     ```
       function product_list_by_category_name( $product_category_name ){
               $args = array( 'post_type' => 'product', 'product_cat' => $product_category_name );
   
           $loop = new WP_Query( $args );
   
           while ( $loop->have_posts() ) : $loop->the_post();
           global $product;
   
               $amount = get_post_meta($product->post->ID, '_price', true) . ' ' . get_woocommerce_currency();
              echo '<table width="400" border="0" cellspacing="0" cellpadding="2">';
               echo '<tr><td width="250"><div align="left"><!-- <a href="'.get_permalink().'"> --!>'. get_the_title() .'<!-- </a> --!></div></td><td width="150"><div align="left"> '. $amount .'</div></td></tr>';
        echo '</table>';
           endwhile;
   
           wp_reset_query();
   
       }
   
       /** SHORTCODE **/
       function product_list_by_category_name_shortcode( $atts ) {
               extract(shortcode_atts(array(
                       'product_category_slug' => ''
               ), $atts));
   
               return product_list_by_category_name( $product_category_slug );
       }
   
       add_shortcode( 'product_list_by_category', 'product_list_by_category_name_shortcode' );
   
       ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Needing a simple gallery but can only find overly complicated ones](https://wordpress.org/support/topic/needing-a-simple-gallery-but-can-only-find-overly-complicated-ones/)
 *  Thread Starter [lochie1979](https://wordpress.org/support/users/lochie1979/)
 * (@lochie1979)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/needing-a-simple-gallery-but-can-only-find-overly-complicated-ones/#post-5135214)
 * As a competitor of theres I doubt they’d part with it I’m afraid.

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