Awhile back I found some code that described how to make the page titles for the WP-Forum WordPress plugin SEO friendly. By default WP-Forum includes the site name and title of the forum itself for every page generated by the forum. To generate more web traffic for your site it will be beneficial to modify the page titles so they include post title and/or forum group name. Follow the directions below to dynamically generate new page titles for each forum post.
Modify WP-Forum Page Titles To Be More SEO Friendly:
- Add Page Title Function:Open up the wp-forum.php file located in “web-root/wp-content/plugins/wp-forum” directory. Near the bottom of the page at line 1193 after the limit_string function add the below function.WP-Forum Function: page_title
- function page_title($original){
- if(isset($_GET['forumaction']) && $_GET['forumaction']=="showforum" && isset($_GET['forum'])){
- return forum_get_forum_name($_GET['forum']);
- }elseif(isset($_GET['forumaction']) && ($_GET['forumaction']=="showposts" || $_GET['forumaction']=="post") && isset( $_GET['thread'])){
- return forum_get_thread_subject($_GET['thread'])." - ".forum_get_forum_name($_GET['forum']);
- }else{
- return $original;
- }
- }
- Add Filter:Now in the same wp-forum.php file located in the “web-root/wp-content/plugins/wp-forum” directory add the below filter code. This is the line that attaches the above function to the page title variable. The below should be added around line 1212 after the above function has been added. You will see other add_filter lines and this new one will go last after all of the others.
- add_filter('wp_title','page_title');
- Verify WP-Forum Page Titles:Now open your WordPress site in a browser and visit the forum. Drill down into one of the forum sections and into a post. The page title of the post should begin with the forum post title followed by the forum section name.
Hopefully this will help generate new traffic for your site.
UPDATE: Newer versions of WP-FORUM are available here and not on wordpress.org.
i have been using WordPress for 2 years but i still dont know how to do SEO using WordPress, is there an SEO pluggin for WordPress?.
Hello Matt,
There are many SEO plugins. The one I use is called All In One SEO >> all-in-one-seo-pack.
Thanks.
alex
Just wanted to thanks for the valuable info about SEO.
Hello SEO,
Thanks for the feedback.
Thanks.
alex
Just a small and harmless message to say hello to everybody. :)
Hello Tumcounkodona.
Hello back to you.
Thanks.
alex
i have problem in forum plugin
What would that be?
Having some trouble myself and the falstead forum has become a billboard for affiliate. Obviously not maintained.
Any idea where I could go for support?
**URL REMOVED** doesnt allow wordpress users to use it, unless they’re admin.
Hello Ron,
Unfortunately if the Falstead Forum is not being maintained the chances for receiving support are slim. You might want to try posting on wordpress.org and label it with wp-forum. I am sure there is some configuration option you can modify to get that working as I did have WP-Forum working without issue though I decided to get rid of it to move to some different software. If you did resolve this issue we would love to hear what resolved the problem.
Thanks.
alex
Although i dont have any problem with google to find everyday my posts on the blog , in the wp-forum section posts google can’t find anything…
Any suggestions?
My site is this
**URL REMOVED**
Hello meet-sos,
It is possible your .htaccess or something else is blocking Google from crawling it. Also make sure that on the pages already in google there are links to the forum.
Thanks.
alex
Is there anyway to find whats wrong?
Anything else in the site is being crawling perfectly by google…
I have noticed that even in the plugin’s official website (wp-forum) google is not crawling the forum posts…
Hello meet-sos,
Unfortunately we are no longer using the wp-forum software so there is not much more that I can add. I do know it is 100% possible to have Google crawl these pages as when I wrote the above article the entire goal was to raise the content already within Google. We would definitely be curious to know what the end result is but I am afraid there is not much more we could offer unless we were o investigate directly.
Thanks.
alex
Anyway , thanx…
I will try to find a solution!
Hello meet-sos,
No problem. Sorry I wasn’t more help.
Thanks.
alex
WP-Forum Version: 2.4 where the add to
Hello cengiz,
Not sure what you mean…
Thanks.
alex