Support Forum

Does Yoast SEO WordPress Plugin Work With Simple Press?

47 Answers

New Answer

MP Mr Papa
Mr Papa
Member

well, must say at bit lost… a long topic with multiple related topics…

I am not sure which part of this topic you are trying to do…  I did not offer a way to change the priority outside of sp core… I offered a way to work with wp seo from yaost and some other stuff (like name adjustment) via non core stuff…  so not entirely sure what you are referencing… and why you need to change 99 to 19 when the other user (slobizmen) didnt need to with catalyst…

I cannot really think of an easy way to change it – you cannot override it..  but you can remove the action… but if we change it, you will have to change…

so maybe something like this:

add_filter(‘sph_forum_startup’, ‘my_sp_start’);
function my_sp_start() {
  remove_filter(‘wp_title’, ‘sp_setup_browser_title’, 99, 3);
  add_filter(‘wp_title’, ‘sp_setup_browser_title’, 19, 3);
}

but that 99 needs to be whatever the priority is…  currently its different in 5.2.6 from what it will be in 5.3…

or please explain further if I have misunderstood…

RV Roberto Villabona
Roberto Villabona
Member

Mr Papa said
well, must say at bit lost… a long topic with multiple related topics…

I am not sure which part of this topic you are trying to do…  I did not offer a way to change the priority outside of sp core… I offered a way to work with wp seo from yaost and some other stuff (like name adjustment) via non core stuff…  so not entirely sure what you are referencing… and why you need to change 99 to 19 when the other user (slobizmen) didnt need to with catalyst…

I cannot really think of an easy way to change it – you cannot override it..  but you can remove the action… but if we change it, you will have to change…

so maybe something like this:

add_filter(‘sph_forum_startup’, ‘my_sp_start’);
function my_sp_start() {
  remove_filter(‘wp_title’, ‘sp_setup_browser_title’, 99, 3);
  add_filter(‘wp_title’, ‘sp_setup_browser_title’, 19, 3);
}

but that 99 needs to be whatever the priority is…  currently its different in 5.2.6 from what it will be in 5.3…

or please explain further if I have misunderstood…

Hi, 

I was trying to solve exactly the same thing slobizman had problems with — WP SEO’s compatibility with S:P, as well as that part where the title was appearing on top of the page but not in the browser tab title area (which appeared to be a conflict with Catalyst Theme).  From what I read in this thread (and slobizman’s posts in the Catalyst Theme forum), the change to add_filter() you told him to use didn’t work with Catalyst Theme (I can attest to that since I saw the same problems).  He seems to have ended up ditching WP SEO and used a plugin to transfer its settings to the built-in Catalyst Theme SEO.  I’m not sure if he tried what I did.

I just posted here to say there seems to be a way to make it work with Catalyst Theme, if you replace the 99 priority with 19 (any number between 15-19 seems to work too).  Just really needed help in trying to figure out if there’s an “update-proof” way to make this change… but it seems there is none since I need to know the exact priority of the add_filter() call within sp-load-forum.php to be able to call remove_filter() on it.  But thanks for the code — at least it’s something I can still use so I can keep my modifications separate from the core.

YS Yellow Swordfish
Yellow Swordfish
Member

I would use the code above that removes the original. OK – so the priority will change in SP5.3 and will your code will need editing when but it is most unlikely to change again after that.