Support Forum
There are some issues with the way Yoast creates their canonical entry. They call it canonical but it really is just the page permalink which is incorrect.
See the post here http://wordpress.org/support/t.....st-or-page on some work arounds.
yup, the yoast one is wrong...
so similar to what the user above recommended and we have previously, do something like this in you spFunctions.php sp theme template file:
function my_canonical_exclude( $canonical ) { if ( sp_is_forumpage() ) $canonical = false; return $canonical; } add_filter( 'wpseo_canonical', 'my_canonical_exclude' );
should work, but I do not know for sure when yoast fires that hook and if our template function is available... if it doesnt work then you would want something like:
function my_canonical_exclude( $canonical ) { global $post; if ( $post->ID == 6992 ) $canonical = false; return $canonical; } add_filter( 'wpseo_canonical', 'my_canonical_exclude' );
but you will need to replace 6992 with your wp page id for the forum.... hence why the first method is better...
I will also see if there is something we can do to handle this internally since we now know the needed hook...
Visit Cruise Talk Central and Mr Papa's World
I have added some code to our next release which should handle the canonical url and page title when running yoast seo... should release when wp 3.6 releases later this month...
Visit Cruise Talk Central and Mr Papa's World
Wow you guys are fast. Ok that is good to hear, so the next version of Simple Press will take care of the issue then.
I am tech savvy from a users point of view but not a coder and I wouldn't feel confident messing with code then when yoast updates or something changes, it messes everything up. Or you have to remember to re-paste the code back in there when you change something else.
Glad this is fixed because I'm sure I'm not the only one who had this issue. There are probably many sites now running on Yoast SEO and Simple Press. They should should all see a BIG boost in organic traffic from Google once the update is made.
Thanks again!!!
I've just run into the page title and meta description (didn't see this one discussed) problems with Yoast SEO. It's apparently overwriting my SP setup.
Is there a function or patch I could add that would fix this now, while i wait for the SP new release? I'm starting to get threads going now and I'm afraid of what Google will do to my rankings when they see all the duplicate titles and meta.
If there is not a fix for it now, how long do you think I'll have to wait for the next release to come out?
find this line in the sp-load-forum.php file
add_filter('wp_title', 'sp_setup_browser_title', 99, 3); # want it to run last
note, it will not have the 99 in there... change teh current value to 99...
not aware of a meta description issue... can you elaborate?
Visit Cruise Talk Central and Mr Papa's World
Thanks, I'll make that change.
As for the Meta Description, it's not creating a proper one for the the page. For example, on this topic's page right here on your forum, it's this (properly):
<meta name="description" content="I read somewhere before that there was a problem with Yoast's Wordpress SEO plugin and Simple Press, but now I can't fin" />
But on a topic on my forum -- and any page of my forum -- the meta description is incorrectly showing as:
<meta name="description" content="Discussion forum dedicated to 3D printers and all that is associated with 3D printing. Come chat with others about the additive manufacturing revolution."/>
That happens to be the meta description I gave (in the Yoast SEO area) the /forum page on which I embedded SP. So every page on my forum has duplicate meta descriptions.
So, as with the title problem with Yoast SEO title field, it looks like the Yoast plugin is overwriting the proper meta description with the Meta Description field found in the Yoast SEO's SEO box on the Edit Page. I've attached a screenshot of the Yoast SEO panel from the Edit Page of my /forum page.
Hopefully, it's as simple as another filter statement change like the title.
Mr Papa said
find this line in the sp-load-forum.php fileadd_filter('wp_title', 'sp_setup_browser_title', 99, 3); # want it to run last
note, it will not have the 99 in there... change teh current value to 99...
not aware of a meta description issue... can you elaborate?
Uh Oh. I made the change as you described -- changing the value of '10' to '99' in that statement, and not only did it not fix the Title field, but it echoed the title field on the the page, above my header. See screencap. You'll see the title that starts with "Sorry Investors..." up at top left corner.
I set the value back to '10' and it stopped doing that.
what screencap?? guess I need to see it to understand what you are saying... its possible there was more to the title fix, but I dont think so... what are you page title options in the forum? forum - options - general display settings..
as to meta description, what options did you select on the forum seo admin panel? forum - components - seo...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)