WordPress.org

Ready to get started?Download WordPress

Forums

URL replace (3 posts)

  1. appzguru
    Member
    Posted 5 years ago #

    Hello,

    i have a problem i cant figure out..

    I want to create shortcode like [gsm $brand=8810]
    that creates a link like this: http://gsm.com/8810

    This is what i came up with, but it aint working:

    function gsm_url($brand) {
    echo "<a href='http://gsm.com/$brand>$brand'</a>";
    }
    
    add_action('gsm','gsm_url');
    do_action('gsm');

    Where do i go wrong?

  2. esmi
    Forum Moderator
    Posted 5 years ago #

  3. dor
    Member
    Posted 5 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic