• Let’s say I have the [abc]testing[/abs], testing being defined in the content editor

    How can I send it to the URL of my WP site? I’d like to have it like *domain.com/?p=1&testing

    I thought that it would be easier to pass the value to $variable by:

    $variable = do_shortcode('[abc]testing[/abc]');

    but it doesn’t work. I try to <?php echo $variable ?> it gives me nothing.

  • The topic ‘Send a shortcode to URL?’ is closed to new replies.