Add gallery id to rel attribe of wp_get_attachment_link

That filter passes more arguments than you are using. return apply_filters( ‘wp_get_attachment_link”https://wordpress.stackexchange.com/questions/134811/,”<a href=”https://wordpress.stackexchange.com/questions/134811/$url”>$link_text</a>”, $id, $size, $permalink, $icon, $text ); The second of those is the one you need. So you need to alter you callback to use the second parameter, and alter your add_filter to ask for it by setting the fourth argument to 2. … Read more

Top menu link anchor href value change after online server?

Sure it will change if it was created using the default WordPress menu. WordPress stores a site url, which is usually the domain or exact path. On your localhost it will be something like localhost/site/about and the moment you deploy your site and update your database with your domain, www.yourdomain.co.za/ – that will automatically update … Read more

Why am I seeing ‘yes’ and ‘no’ in URLs crawled by Xenu?

I resolved the problem – we’re using the Zemanta Related Posts and somehow that was adding references to missing thumbnail images with src=”https://wordpress.stackexchange.com/questions/141273/yes” and src=”no”. Regenerating the missing thumbnail images got rid of this problem.

How to link to specific part of a page in wordpress permalinks

Maybe this works, currently not tested. Only a idea to enhance for the custom var. Also I don’t the goal right. add_filter( ‘query_vars’, ‘add_custom_query_var’ ); function add_custom_query_var( $vars ) { $vars[] = ‘#’; return $vars; } A other hint is the link to the codex, to filter the rewrite of WP.