Noindex subscriber author page

The function you want is get_userdata(). Since you need to do this outside the loop, the process is a little less straight-forward. The first thing you need to do is set up a variable called $curauth which is an object that you create by accessing the database by using the $_GET[] superglobal. $curauth = ( … Read more

How to use the checked() function to check for a non-empty var

Not possible. You may do both, but may not be as optimal as single line: $verify = (empty($var)) ? ‘current_value’ : $var; checked( $verify, $current ); Or you can create a custom function: function better_checked($check, $current, $echo = true) { $result=” checked=”checked””; if ( ( $check != ” && $current != ” ) && ( … Read more

wordpress site – using custom database and PHP

Since we do not know how the data should be represented on the ‘front-end’ (read WP install), it is hard to say. You could convert the existing database to use custom tables. Create a small REST(1) JSON/XML(1) API(1) on the ‘other’ application. Then code a WordPress plugin that shows the data from the API with … Read more

change default RSS feed URL

I found my answer here : https://wordpress.stackexchange.com/a/214883/71314 function remove_feed( $feedname ) { global $wp_rewrite; if ( in_array( $feedname, $wp_rewrite->feeds ) ) { $wp_rewrite->feeds = array_diff( $wp_rewrite->feeds, array( $feedname ) ); } $hook = ‘do_feed_’ . $feedname; // Remove default function hook remove_all_actions( $hook ); add_action( $hook, $hook ); return $hook; } Usage: remove_feed( ‘feed’ );