Page fragement caching
-
Hello there,
I’ve started out using your page fragment <!– mfunc with some success, thanks for a great feature !
But am running into some issues when trying to echo with a $post->ID.
The portion of the code I’m trying to fragment :
<!-- mfunc code --> global $post; echo getHotThumb($post->ID, false, true); <!-- /mfunc code -->
The first load of the cache page works perfectly, but on the next load, I get the following error from WordPress : Notice: Trying to get property ‘ID’ of non-object. Thus the thumb count shows 0.
I’m a beginner in all this, so if I have it all wrong, your help would be appreciated ?? Thanks !
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Page fragement caching’ is closed to new replies.