Logout link not working
Logout link not working
Logout link not working
A few issues- php tags are for interpolating between php/html, they can’t go within php statements. Also, the single quotes in bloginfo are closing your string, which is generating the error. Lastly, bloginfo will echo its value, which can’t go within an echo statement, you need to use get_bloginfo instead, or simpler, just use home_url(): … Read more
To encode the URLs on the source page, in this case ‘home’: function append_query_string( $url, $post, $leavename ) { if ( $post->post_type == ‘post’ ) { $url = add_query_arg( ‘source’, ‘home’, $url ); } return $url; } add_filter( ‘post_link’, ‘append_query_string’, 10, 3 ); This adds ?source=home to the end of post link URLs on the … Read more
random characters on links
Link rewrite to https (NOT URL rewrite)
Ah ha: by searching the rendered page for target I discovered that the site was running a plugin called “Open external links in a new window.” Disabling that plugin solved the problem.
Use bp_core_get_user_domain($user_id). This will give you the url part up to the username (with a slash at the end). Try something like the following: $user_id=bp_displayed_user_id(); $link=bp_core_get_user_domain($user_id).”profile/edit/group/8″;
Links offset on my page
The Anchor will never get to your server, it is only for client use (your browser). PHP will never get the anchor, and will do nothing with it. This is more Browser related, than WordPress or Server related.
Unable to create hyperlink after WordPress updated