• Hi There,

    I was called upon by a client today to investigate a problem with their theme not retrieving the photo galleries properly.

    Upon further investigation, I realized, in the wp-admin page edit screen, that the ‘woothemes testimonial’ plugin is changing the post->id before the custom meta box loads the postmeta for the page. This was determined to be the source of the problem, since disabling your testimonial plugin resolved it.

    Additionally, the global post->id is also being changed in the frontend template, causing the postmeta to load incorrectly, so the galleries assigned to the specific page will not load properly.

    I see in your changelog that perhaps you fixed this in 1.5.2, but then changed it back in 1.5.3?

    I rolled the plugin back to 1.5.2 and all works properly again!!!

    Will you please review your usage of the global $post variable and see that it will not conflict with theme functions that rely on that variable to load postmeta for a page?

    Please let me know if you plan to address this in your next release, and if there is anything else I can do to be of assistance.

    Best,
    Terrance

    https://wordpress.org/plugins/testimonials-by-woothemes/

  • The topic ‘Global post->id is being changed in edit page and template, breaks theme’ is closed to new replies.