Category: Wordpress Tips

Customize wordpress excerpt ellipsis with post permalink 0

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>’; } add_filter(‘excerpt_more’, ‘new_excerpt_more’); You can...

Show wordpress search result in Ascending order 0

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()): ?> Now you are done...

Adding custom user profile fields in wordpress 0

Adding custom user profile fields in wordpress

Open your theme’s “functions.php” file and this PHP code in your file. <?php add_action( ‘show_user_profile’, ‘show_extra_profile_fields’, 1 ); add_action( ‘edit_user_profile’, ‘show_extra_profile_fields’, 1 ); function show_extra_profile_fields( $user ) { ?> <h3><?php _e(‘Your Hotel Address’, ‘frontendprofile’);...