Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Is bbpress SEO friendly???


chrishajer
Participant

@chrishajer

You can create a full plugin out of it, then activate the plugin, or _ck_ likes to create a single plugin for all the miscellaneous tweaks or mini-plugins, then add this to that file. Adding this to a file of other mini-plugins means you cannot activate and deactivate this independently. That works for tweaks you will always want to use.

A plugin header will need to look something like this:

<?php
/*
Plugin Name: bbPress Tweaks
Plugin URI: http://www.example.com
Description: Various tweaks to bbPress
Author: You
Version: 0.1
*/

Add the above code after that, and call the file bbpress-tweaks.php, put it in my-plugins, then activate it in the bbPress admin. It should look like this when you’re done:

<?php
/*
Plugin Name: bbPress Tweaks
Plugin URI: http://www.example.com
Description: Various tweaks to bbPress
Author: You
Version: 0.1
*/
function meta_keywords() {
global $tags;
if (!empty($tags)) {
$keywords="";
foreach ($tags as $t) {
$keywords.=$t->raw_tag.', ';
}
echo "n".'<meta NAME="keywords" CONTENT="'.trim($keywords,", ").'">'."n";
}
}
add_action('bb_head', 'meta_keywords',8);
?>

Skip to toolbar