Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Want to add more option in “Sexy Login”

This can be done using a simple build-in WordPress command.

An example of your situation:

<?php
    if ( is_user_logged_in() ) {
         echo '<a href="#" class="write-new-post">Write New Post</a>';
    } else {
         echo '<a href="#" class="Login">Login</a>';
    }
?>

Related Posts:

  1. Programmatically add widgets to sidebars
  2. WordPress 3.8 – Dashboard 1 Column Screen Options
  3. Executing Javascript When a Widget is Added in the Backend
  4. Loading scripts only if a particular shortcode or widget is present
  5. Limit number of Widgets in Sidebars
  6. How Can I Add the “Insert From URL” Tab to a Custom 3.5 Media Uploader?
  7. Give Editor Access To Sidebar
  8. How to load Widget javascript + css files only if used?
  9. Where is the content of widgets stored in mysql table
  10. Hide specific categories from category widget
  11. changing wp-admin/widgets.php
  12. Add class to before_widget from within a custom widget
  13. How can I use the built in WordPress “browse link” functionality?
  14. Is there any way to dynamically alter widget titles?
  15. Translate widget titles using qTranslate plugin
  16. Code for Recent Posts Widget
  17. Get number of widgets in sidebar
  18. Text Widget creates a
  19. Can a widget in the Customizer be “single-use” (i.e. disabled after 1 instance has been added)?
  20. check if registered sidebar is active & has widget content
  21. How to edit widgets in WordPress
  22. dynamically add scripts to WP_Widget widget() method
  23. Extend WordPress 3.8 Site Activity Dashboard Widget to include more comments
  24. How to use is_active_widget?
  25. Get a list of all Widgets registered in WordPress admin widgets-area
  26. Modifying the default search widget
  27. Adding iframe Content to Sidebar Widget
  28. Enabling jquery when dragging available widget to sidebar area
  29. How Do I Add Custom CSS To Only Certain Widgets
  30. Get Widget Instance inside Widget
  31. Show post tags in a widget
  32. Author template, filter sidebar widgets by author?
  33. Prevent widgets removal
  34. Add the sidebar/widget editor to the post edit screen?
  35. WordPress 4.8: Using multiple WYSIWYG-Editors with media inside of Widgets how to?
  36. Does the number of widgets installed affect website performance?
  37. WP_Widget deprecated error in WordPress V4.3
  38. What is the quickest way to make a widget?
  39. How to display custom widget anywhere
  40. Show Woocommerce minicart widget in checkout page sidebar? And, how to make this update secure by overriding widget?
  41. Get page IDs based on which template they are using?
  42. Changes in widget customizer not triggering ‘save and publish’
  43. Add filter to blogroll widget
  44. Widget Options Not saving
  45. Indexes of widgets instances starts with ‘2’ in ‘wp_options’ table
  46. How to use wp_dequeue_style() for style enqueued in WP_Widget class
  47. Complex widget form UI – examples and best practices
  48. How do i manually place a widget code
  49. How to override the wordpress default widget markup
  50. Why is the $old_instance needed for the widget update function?
  51. Embed iframe or html page into dashboard widget
  52. Storing custom dashboard widget options in wordpress
  53. Get sidebar parameters (before_widget, before_title, etc.) from within a widget
  54. Prevent second widget activation
  55. How can I add links to widget titles?
  56. How to refresh Theme Customizer after change color inside wpColorPicker?
  57. How to add image uploader to a custom widget?
  58. PHP Coding Standards, Widgets and Sanitization
  59. Different widgets on different page templates?
  60. How to Remove All Widgets from Dashboard?
  61. Widgets not displaying in theme customizer
  62. $post>ID displays wrong post ID
  63. Register multiple sidebars
  64. Is there a way to add more tags to the tag cloud?
  65. Modify recent post sidebar to show post thumbs with out plugins
  66. Loop through widgets in sidebar
  67. How do I rebind event after widget save
  68. Programmatically edit the text of a widget
  69. How to add color picker to widgets?
  70. Where to find the source code of a widget?
  71. How to add author details in the post sidebar?
  72. How to delete cached transients from a widget instance properly?
  73. What is this instance variable doing in the Widgets class
  74. How to add a filter to all widget output
  75. Determining a Widget Instance and Sidebar Location?
  76. How to Validate Widget Input
  77. How to build widget with arrays inside arrays?
  78. Randomize widgets displayed in my sidebar [duplicate]
  79. How do I save data from submitted form from widget
  80. Calling static method in the Widget Class
  81. Video Embed in Sidebar Widget with Links to Others in Category
  82. Remove before_widget / after_widget content from Wp_Widget_Text
  83. How to add Custom Fields to Settings in Widget Options for all Registered Widgets?
  84. Why Can’t wp_editor Be Used in a Custom Widget?
  85. Shortcode from a widget is wrapped in unwanted element
  86. link wordpress and stackoverflow
  87. How to listen to color changes on the color picker?
  88. Remove All Widgets from Sidebar
  89. Woocommerce Product Category Widget – hide categories that have no products in stock [closed]
  90. Where to get the unsaved list of widgets in customizer?
  91. Insert a span inside widget title to give a different color to the second word
  92. Add New Footer Widget Area with Limited Options?
  93. Widget with random posts from a blog for external sites
  94. Widget Update Code Not Working
  95. Add div class to only one widget
  96. How to use control_callback when creating a widget via functions.php or plugin?
  97. Remove […] from RSS feed?
  98. Why will using __construct instead of widget_class_name when creating widget trigger out of memory error
  99. Remove rss widget title link
  100. How can I whitelist only specific shortcodes for processing in text widgets?
Categories widgets Tags login, widgets
How to relate the Category to user?
How can I add text on top of slideshow? [closed]

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress