Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Does Yoast SEO Wordpress Plugin Work With Simple Press?
Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Apr 4, 2013 - 10:55 pm

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 4, 2013 - 11:01 pm

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...

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 4, 2013 - 11:29 pm

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...

Avatar
Robert Lawrence
Member
Free Members
sp_UserOfflineSmall Offline
Apr 5, 2013 - 12:48 am

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!!! :)

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 5, 2013 - 2:01 am

You're welcome.

andy-signature.png
YELLOW
SWORDFISH
Avatar
slobizman
Member
Free Members
sp_UserOfflineSmall Offline
Apr 26, 2013 - 6:54 pm

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?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 27, 2013 - 2:26 am

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?

Avatar
slobizman
Member
Free Members
sp_UserOfflineSmall Offline
Apr 27, 2013 - 5:23 am

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. :)

Avatar
slobizman
Member
Free Members
sp_UserOfflineSmall Offline
Apr 27, 2013 - 5:54 am

Mr Papa said
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?

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 27, 2013 - 10:37 am

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...

 

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625