Close

Account

Documentation

Forum

Menu

Reply To: Sidebar "problem"

Post count: 21
zlato
March 9, 2018 at 5:31 am #29396

Hi guys we resive plugin avtor info:

Im very sorry for not replying ealier.

The fix cannot be put in a child theme, because the modified file is a theme core file:
themes/jnews/includes/vp/includes/wpalchemy/Metabox.php

This where my notes:
//——-
added this:

//— bug, not loading rhc template meta
global $post;
$rhc_template_id = is_object($post) && property_exists($post,’rhc_template_id’) ? $post->rhc_template_id : 0 ;
$rhc_template_id = $rhc_template_id==0 && isset($rhc_template_page_id) && $rhc_template_page_id>0 ? $rhc_template_page_id : $rhc_template_id ;
if( $rhc_template_id > 0 ){
$meta = get_post_meta($rhc_template_id, $this->id, TRUE);
}

because the template overwrites the value returned by get_post_meta

themes/jnews/includes/vp/includes/wpalchemy/Metabox.php

This code is added to the function _meta
//——-

Because we cannot predirect how the theme will change in the future, it is imposible for us to give you specific instructions on how to deal with the issue in the future.

Best regards,