We can add lots of contact information, depending upon your needs. To extend user contact info, open the files and add in this code <?php function my_new_contactmethods( $contactmethods ) { // Add Twitter $contactmethods[‘twitter’] = ‘Twitter’; //add Facebook $contactmethods[‘facebook’] = ‘Facebook’; return $contactmethods; } add_filter(‘user_contactmethods’,’my_new_contactmethods’,10,1); ?> This is only a basic example and you can
How to Display any External RSS Feed on Your WordPress Site
Do you know how bloggers who display their other blog’s feed on their site. You want to do it too for extra promotion and traffic. Well here is the tutorial for you. Simply paste the following code in anywhere in your theme: <?php include_once(ABSPATH.WPINC.’/feed.php’); $rss = fetch_feed(‘http://feeds.feedburner.com/wpbeginner’); $maxitems = $rss->get_item_quantity(5); $rss_items
Taxonomy filter for admin area
While working on custom post everybody struggles while sorting the posts by custom taxonomy, if you add a code for each taxonomy then it will be lengthy. so here is the code for sort by all taxonomies. Add it on your functions.php then sorting will be available on all posts