I'm trying to create a ‘share your post' page so that the users can share the post they have just created. I'm using this with woo commerce and at the moment I have them redirecting to the post page which takes them to the single product page.
I would like to redirect them to a page that has social sharing icons they can click to share on the different networks. I have created a new page template with the relevant social sharing code in it but I need to know how to grab the URL for the newly created post. I printed all the available variables using the php get_defined_vars() but can't find any variable that holds the URL I need.
Is there anything I can call/I'm missing to get the relevant URL for the newly created post?
I want to be able to customise the promotion page for the sellers. There is already a social sharing plugin installed but this is not obvious and is for any one on the site to use. I would like to be able to customise the messages and have a custom promotion page. Having a dedicated page that highlights the promotion they can do is a common method for blogging/ecommerce.
I would like to have this as its own page instead of getting lost in the single post page social sharing.