Keep $post->ID unchanged while passing through W3TC mfunc

Is there a way of keeping $post->ID unchanged while passing through W3TC Fragment Cache “mfunc” ?

I’m dealing with an archive and when wrapping my function with , all the $post->ID reflect the id of the page they are contained in but not the id they originally come from.

Thus the mfunc is outside the loop and losing the specific post id I need to generate specific content for every post in the archive.

I’m explaining badly since I’m beginning in all this, but would you have an idea on how to fix this ?

Thanks !

Read more here:: ID unchanged while passing through W3TC mfunc” rel=nofollow>Keep $post->ID unchanged while passing through W3TC mfunc

Leave a Reply

Your email address will not be published. Required fields are marked *