intuitive-custom-post-order icon indicating copy to clipboard operation
intuitive-custom-post-order copied to clipboard

Update intuitive-custom-post-order.php

Open emilio-pro opened this issue 7 years ago • 16 comments

Using the Yoast plugin with Intuitive CPO I noticed the Yoast-snippets wouldn't update anymore in my multisite environment. I fixed this by replacing line 741 to restore_current_blog(); as described here: https://codex.wordpress.org/Function_Reference/switch_to_blog

I also added an extra check (is_plugin_active_for_network('intuitive-custom-post-order/intuitive-custom-post-order.php') ) because apparently there is no use calling the multisite actions if the plugin isn't network activated.

emilio-pro avatar Sep 04 '17 14:09 emilio-pro

This needs to be addressed. Also causes issues with Broadcast.

restore_current_blog() needs to be used when switching please.

Had to deactivate plugin.

samholguin avatar Oct 19 '17 13:10 samholguin

This issue also causes problems with MultilingualPress. I’d appreciate it very much if this could be addressed soon.

gchtr avatar Dec 01 '17 09:12 gchtr

@hijiriworld Looks good so far. Please merge.

carstendietrich avatar Jan 16 '18 11:01 carstendietrich

Meanwhile... the patch. https://gist.github.com/mircobabini/99abd60a15212ecc5d47255b492f6790

mircobabini avatar Apr 20 '18 17:04 mircobabini

@hijiriworld Could you please merge this pull request?

lissmeister avatar Apr 27 '18 08:04 lissmeister

Any word on why this hasn't been merged? This fix would really come in handy.

mbiang avatar Jul 09 '18 18:07 mbiang

Please merge this. It's really anoying not to have Yoast SEO working.

jorisvm avatar Jul 12 '18 13:07 jorisvm

Any word on this? I can still reproduce the issue.

nicksatkovich avatar Sep 27 '18 12:09 nicksatkovich

I can confirm this works and fixes the Yoast issue. +1 to merge

mzawodny avatar Apr 11 '19 14:04 mzawodny

This also effects the ability to set a primary category with Yoast. Rolling back to v3.0.8 removes the issue.

DarrenTheDev avatar May 23 '19 01:05 DarrenTheDev

Just sent an email to @hijiriworld from his website.

Finder crossed 🤞

mircobabini avatar Jun 11 '19 13:06 mircobabini

I confirm that this fix is important and needs to be done to prevent conflict with the Yoast SEO plugin. I have done it manually in our project but still hope for merging pull-request

nsur avatar Oct 08 '19 08:10 nsur

I've just spent too much time trying to figure it out. ICPO + Multisite = Not Yoast SEO Friend. Please make the change.

francoistibo avatar Feb 28 '20 15:02 francoistibo

@emilio-pro does the problem still exists? If yes it would be great if you can update the PR ✌️

timohubois avatar Nov 19 '23 20:11 timohubois

@timohubois I don't know. I haven't used the plugin for a couple of years now. You code has changed a lot since then, so I wouldn't know. But it is pretty safe condition to add, so you could test it.

emilio-pro avatar Nov 21 '23 19:11 emilio-pro

@emilio-pro I think it should be fixed at the current master branch. Can you give them a try?

timohubois avatar Nov 22 '23 08:11 timohubois