Twitter Profile Field

I’ve created my first WordPress plugin. Twitter Profile Field is a simple WordPress plugin there gives you a new box in your profile admin to add in your Twitter username.
It does also include a shortcode to allow you to display your Twitter username in posts, pages and text widgets.

The Profile page

Installation

  1. Download the plugin and unzip it.
  2. Put the twitter-field folder into the wp-content/plugins/ directory.
  3. Go to the Plugins page in your WordPress Administration area and click ‘Activate’ next to Twitter Profile Field.
  4. Go to your Profile page and at the bottom of the page is a new input field called Twitter username. Add your username in there.
  5. If you want to add the function to your theme file(s) then use:
    ‹?php the_author_meta('twitter'); ?› if it’s INSIDE the loop or use
    ‹?php the_author_meta('twitter',1); ?› if it’s OUTSIDE the loop. 1 is the User ID
  6. If you want the username to be showed in posts, pages or text widgets then use:
    jayjdk It will display the username without any markup
    will display the username with a link and the class twitter-profile (<a href="http://twitter.com/username" class="twitter-profile">Username</a>)

How to use shortcodes in posts, pages and text widget

Download Twitter Profile Field

Please use this comment form for support.

Skrevet 24. juli 2009 af Jesper i Wordpress

Score: 0

Disse indlæg kunne måske også interessere dig?

2 kommentarer til “Twitter Profile Field” Tilføj en kommentar til Twitter Profile Field

  1. Baron siger:

    Works great, thank you

Trackbacks

Skriv en kommentar