• I would like to create a shortcode where

    [fburl]username[/fburl]

    would return this code: <img src=”/wp-images/post-facebook.png” border=”0″>

    *** This way the entered username within the shortcode is entered in the stated URL. I would also like:

    [twiturl]username[/twiturl]

    would return this code: <img src=”/wp-images/post-twitter.png” border=”0″>

    My anticipation is to use this within my posts just after certain texts that I want to provide links to their profiles. I do not want to enter all that coding for each one, over and over. I would like to just include the username and that is it.

    I would truly appreciate any help from this. I have spent a few hours on tutorials and videos, and just become clueless.

    Thanks

Viewing 1 replies (of 1 total)
  • Thread Starter cpargolf

    (@cpargolf)

    OOpps….

    I would like to create a shortcode where

    [fburl]username[/fburl]

    would return this code: <a href="https://www.facebook.com/username" target="_New"><img src="/wp-images/post-facebook.png" border="0"></a>

    *** This way the entered username within the shortcode is entered in the stated URL. I would also like:

    [twiturl]username[/twiturl]

    would return this code: <a href="https://www.twitter.com/username" target="_New"><img src="/wp-images/post-twitter.png" border="0"></a>

    My anticipation is to use this within my posts just after certain texts that I want to provide links to their profiles. I do not want to enter all that coding for each one, over and over. I would like to just include the username and that is it.

    I would truly appreciate any help from this. I have spent a few hours on tutorials and videos, and just become clueless.

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Shortcode Help’ is closed to new replies.