How to create custom authors links

You can use author_link filter to change the author’s link add_filter( ‘author_link’, ‘wpse110967_author_link’, 10,2 ); function wpse110967_author_link( $link, $user_id ){ //Retrieve authors url from user meta $_link = esc_url( get_user_meta( $user_id, ‘wpse110967_author_link’, true ) ); if( $_link ) $link = $_link; return $link; } In the above example its assumed that you’ve stored the author-specified … Read more

bloginfo no show the right path

the codex says get_stylesheet_directory_uri(); returns a properly-formed URI; in other words, it will be a web-address (starting with http:// or https:// for SSL). As such. i don’t understand why it’s not working for you, try to use get_template_directory_uri(); in the event a child theme is being used, the parent theme directory URI will be returned, … Read more

Temporary download page or restrict static download page based on how the user got to the page?

For your first question “Detect where they are coming from”, Just check the $_SERVER[‘HTTP_REFERER’] for your expected web address. For the second “Create a short lived page”, your answer lies in the set_transient() method. You can do something like: function create_page() { if ( get_current_user_id() ) return “<html>…</html>”; return false; } function get_page( $unique_id ) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)