I created a shortcode by
add_shortcode. where the shortcode placed in a wordpress page to display dynamic content. The dynamic content is based on the URL value.
If URL is
wordpress/sample-page/?user=john in my shortcode content I get the url value by
Now I would like to rewrite the url like
wordpress/sample-page/john. And want to get the URL values in shortcode. Is this possible in wordpress? if so Please guide me.