• Resolved sunbaghdad

    (@sunbaghdad)


    Hello
    Thank you so much for this amazing plugin.
    I have one issue if you could help me:
    I’m using WooCommerce, and I would like to embed only the downloads part of the My Account page.
    Right now I can do this: [insert page=’my-account’ display=’content’]
    Which is working fine in showing the My Account page.
    However, I need it to show the downloads tab
    something like this [insert page=’my-account/downloads’ display=’content’]

    How can I make it work?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Paul Ryan

    (@figureone)

    Aloha, we will be releasing an update that lets you customize the WordPress query vars in your inserted page, so you will be able to use the method WooCommerce uses to display the subsections of the My Account page.

    I looked at the WooCommerce templates in wp-content/plugins/woocommerce/templates/myaccount/my-account.php and found that the appropriate actions get fired based on the pagename and downloads query vars. So, to insert the Downloads tab, you would just add that specific querystring to your shortcode:
    [insert page='my-account' display='content' querystring='pagename=my-account&downloads']

    This will be included in the next release, but if you want to give it a try now here is the change:
    https://github.com/uhm-coe/insert-pages/commit/7873fb89d4eb17e98ddc0cff1b2cf0ef4418c7e3

    Thread Starter sunbaghdad

    (@sunbaghdad)

    Hey Paul,

    I tried it just now, and I applied the changes from your GitHub, it’s working like charm now.
    Wonderful job!

    Thank you so much for the great efforts.

    Have a wonderful day!

    Plugin Author Paul Ryan

    (@figureone)

    Awesome, you too!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Include URL rather than Page’ is closed to new replies.