Category: WordPress

  • Important WordPress links!

  • How to Display List of Authors?

    Here is how you can display a list of the authors (users) associated with your WordPress Blog, and if the user has authored any posts, the author name is displayed as a link to their posts. Optionally this tag displays each author’s post count and RSS feed link.

    <?php wp_list_authors( $args ); ?>
  • New Features in WordPress 2.8.4

    Here are the list of Newly added features to WordPress in it’s latest version 2.8.4.

    1. New Theme Installer routines
    2. Add CodePress syntax highlighting to Theme and Plugin editors
    3. Add Documentation(function) lookup to Theme and Plugin editors
    4. Use “Custom Header” for menu text and revise Default theme to reflect change
    5. Separate Comments into a separate postbox, from Discussion postbox, on the Edit Post screen
    6. Make tags accessible without Javascript on the edit screen
    7. Don’t ask for confirmation when marking a comment as spam
    8. Don’t notify post author of own comments
    9. Fix comment paging for static front page
    10. Allow the dashboard widgets to be arranged in up to four columns as set via the Screen Options tab
    11. Make titles into links in Dashboard Right Now module (this was in 2.7.1)
    12. Improved Admin icons (grey-to-transparent shadows)
    13. Update Blue Admin Color Scheme
    14. Press This improvements UI, quoting fixes, plus ability for Contributors to use Press This
    15. Add a Cancel Upload button and a Delete link to Administration > Media > Add New
    16. Add column “Rating” in Administration > Links > Edit
    17. Improve installer to help people entering wrong email addresses
    18. Improved Widget user interface
    19. Allow editing of all plugin files (Ticket 6732)
    20. Improved Plugin search (this was in 2.7.1) on Administration > Plugins > Add New
    21. Per Page option for plugins
    22. Move “Install a plugin in .zip format” to new Upload tab under Administration > Plugins > Add New
    23. Show absolute date instead of relative date for scheduled posts
    24. Fix tags suggest for post quick edit and bulk edit
    25. Permalink editor changes and fix for pages
    26. Autosave post/page when pressing Control/Command+S
    27. Add toggle all button to the Gallery tab in the uploader
    28. Support more than one gallery on the same page
    29. Add per page option to Screen Options for comments, posts, pages, media, categories, and tags
    30. Overhaul of LiveJournal importer (also add define WP_IMPORTING)
    31. Import category descriptions for Administration > Tools > Import > WordPress
    32. Show Tools menu for all users so they can access Turbo
    33. Check for new version when visiting Administration > Tools > Upgrade
    34. In upgrade process, provide better explanation for database upgrade message
    35. Fix most popular link category list
    36. Add description field for Tags in Administration > Posts > Tags
    37. WAI-ARIA landmark roles to added to WordPress Default theme
    38. “Choose a city in the same timezone as you” for Timezone in Administration > Settings > General
    39. Remove My Hacks option from Administration > Settings > Miscellaneous
    40. Hide email addresses from low privilege users on Administration > Comments
    41. Allow case-insensitive logins
    42. Login and Registration pages noindex followed
    43. Give login screen proper iPhone viewport
    44. Enforce unique email addresses in Add/Edit users
    45. Make user_nicenames unique during registration
    46. Add “Send this password to the new user by email” option to Administration > Users > Add New
    47. Don’t set user’s Website url to http:// in Administration > Users > Add New
    48. Add password strength meter to Add User and Edit User
    49. Hide things that need to be available to screen readers via offscreen positioning
    50. Use invisible class for hiding labels and legends
    51. Use a semantic class name for text targeted to screen readers

    Hope we will get a lot more new features in upcoming versions of  WordPress. This will help a lot in WordPress Customization and Development.

  • How to change the “Read More” link?

    In the WordPress Templates we generally see the “Read More” links at the end of the small excerpt text. Do you want to change the text to something else? Then please follow the steps :

    1. Navigate to Appearance –> Editor in your WordPress Dashboard
    2. Open your “index.php” or file and find this line:

    <?php the_content(__('Read more'));?>

    3. replace it with this one: 

    <?php the_content("YOUR OWN TEXT" . the_title(",",false), 0); ?>
  • How to remove Excerpt if left empty?

    How to remove Excerpt if left empty?

    In WordPress the_excerpt() displays the excerpt field value of the current post. If you do not provide any content in excerpt field to a post (in the post editor’s optional excerpt field), it will display a teaser which refers to the first 55 words of the post’s content.

    Remove excerpt text if excerpt field is empty :

    By default, if you have your theme set to display the excerpt and no excerpt content is entered, WordPress will just display the first 55 words teaser from the post. But if you want don’t want anything displayed then simply use the following code in functions.php file.

    remove_filter( 'get_the_excerpt', 'wp_trim_excerpt' );

    This code will remove the wp_trim_excerpt filter from get_the_excerpt() function.

     

    Change WordPress post excerpt length:

    You can use excerpt_length filter to set a custom length of the excerpt to display. Remember its the number of words, not number of characters.

    function wpboys_change_excerpt_length( $length ) {
    // Return a desired excerpt length number
    return 150;
    }
    add_filter( 'excerpt_length', 'wpboys_change_excerpt_length', 999 );

     

    Change WordPress excerpt more text[…] :

    When an excerpt is displayed you will see characters like this , ” […] ” at the end. You may want to change it to something meaningful, like a readmore link, or simply disable it.

    1. To remove the […] characters from excerpt output , add this filter code in functions.php file.

      add_filter( 'excerpt_more', '__return_empty_string' );

    2. To add a readmore link, we will use the same experpt_more filter as given below. Use the following code in functions.php file of your active theme.

      function wpboys_excerpt_readmore(){
      return '<a href="' . get_the_permalink() . '">Read More »</a>';
      }
      add_filter( 'excerpt_more', 'wpboys_excerpt_readmore', 999 );

    If you still have any questions, feel free to leave a comment here, and we will try to help you.