[wp-hackers] how to avoid [shortcodes] appearing in search link results?

24/7 24-7 at gmx.net
Fri Oct 29 15:37:31 UTC 2010


Hey, thanks for your answers!

@Nathaniel:
- I'm talking about "search engine results" (ex. Google).
- A simple Code example:
[code]
	// Things that, for a non tech savy client, would else be confusing,
so we do it via a short code
	// Clear-span
	add_shortcode('break', 'make_a_break');
	function make_a_break() {
		return '<span class="clear">&nbsp;</span>';
	}
	// hr
	add_shortcode('linie', 'make_a_line');
	function make_a_line() {
		return '<hr />';
	}
[/code]
- About the meta-content: That was the problem. I wasn't aware of
this. Thanks!
- I wasn't sure if this is a bug or some mistake on my side. It didn't
fit, so: Sry for posting it here.


More information about the wp-hackers mailing list