title: Display related products using a shortcode on WooCommerce My account Dashboard
body: <p>I'm trying to display related products in My account Dashboard page. I followed this <a href="https://docs.woocommerce.com/document/woocommerce-shortcodes/#section-17" rel="nofollow noreferrer">WooCommerce Shortcodes documentation</a>.</p>
  <p>I tried to use the following code:</p>
  <pre><code>add_action( 'woocommerce_account_content', 'output_shortcode_on_child_pages');
  function output_shortcode_on_child_pages() {
      $post = get_post();
      
      if ( is_page() AND $post-&gt;post_parent ) {
          echo do_shortcode( '[related_products limit=”3″]' );
      }
  }
  </code></pre>
  <p>This does not display the related products. But when I try to display products in specific category like following, it works:</p>
  <pre><code>add_action( 'woocommerce_account_content', 'output_shortcode_on_child_pages');
  function output_shortcode_on_child_pages() {
      $post = get_post();
      
      if ( is_page() AND $post-&gt;post_parent ) {
          echo do_shortcode( '[products limit=&quot;3&quot; columns=&quot;3&quot; orderby=&quot;rand&quot; category=”presets-and-actions” ]' );
      }  
  }
  </code></pre>
  <p>Kindly any help to resolve this?</p>