List/Grid Wordpress Tips Subscribe RSS feed of category Wordpress Tips
Change wordpress excerpt length
Copy and paste the given blow code in your theme functions.php file which will change the length of the wordpress excerpt function. function ratanjyot_solutions_excerpt_length($length) { return 50; } add_filter(‘excerpt_length’, ‘ratanjyot_solutions_excerpt_length’);…
Customize wordpress excerpt ellipsis with post permalink
Copy and Pase the given blow code in your functions.php file. This code will replace the ellipsis with post permalink. function new_excerpt_more($content) { return ‘<div><a href=”‘. get_permalink() .’”>Read More…</a></div>’; }…
Show wordpress search result in Ascending order
WordPress shows search result always in descending order to change it into Ascending order follow the given blow instruction. Change this line <?php if(have_post()): ?> to <?php query_posts(‘order=ASC’); if(have_post()): ?>…
Show Top Comments or Commentators In WordPress Without A Plugin
Here is a simple code snippet to show the top commentators or comments in the wordpres without any plugin. The code are given blow. function top_comment_authors($amount = 5){ global $wpdb;…
Add custom or extra fields on registration page in wordpress
Open your theme’s function.php file and drag this PHP code in. <?php // This function shows the form fiend on registration page add_action(‘register_form’,’show_first_name_field’); // This is a check to…






