Posted in Featured, Tutorials, Wordpress

Like this post? Share It :
  • Print
  • email
  • PDF
  • Google Bookmarks
  • Facebook
  • Twitter
  • MySpace
  • Yahoo! Buzz
  • del.icio.us
  • Digg
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Reddit
  • Technorati
  • Design Float
  • RSS

Display Messages For Logged In WordPress Users

wordpress

If you have users on your WordPress blog, you can choose to display messages/stuff only for them, or vice versa, you can refer to this simple one step tutorial.

style=”text-align: center;”>

Procedure:

style=”color: rgb(255, 0, 0);”>Note: Do take backup of the file you try this.

01. Place the below code in functions.php file:

class=”code”>if ( is_user_logged_in() ) {
/> echo 'Welcome, registered user!';
/> } else {
/> echo 'Welcome, visitor!';
/> };
/>

 

This concludes this simple and useful tutorial. Hope you like it.


TutZone

Like this post? Share It :
  • Print
  • email
  • PDF
  • Google Bookmarks
  • Facebook
  • Twitter
  • MySpace
  • Yahoo! Buzz
  • del.icio.us
  • Digg
  • LinkedIn
  • StumbleUpon
  • Tumblr
  • Reddit
  • Technorati
  • Design Float
  • RSS

Related posts:

  1. How To Display Only Specific Category In Search Results
  2. How To Display Adsense Ads On Posts Older Than 4 Days
  3. How To Display Adsense Ads On Posts Older Than 4 Days
  4. How To Change WordPress 3.2 HTML Editor Font
  5. How To Highlight Search Results In WordPress

Comments are closed.