Hello Rose,
I waited more than 24 hours as I have no caching plugin active, but there is no change in the administrative notice on top.
Please advice.
Regards,
Mehmet
Hello Rose,
I waited more than 24 hours as I have no caching plugin active, but there is no change in the administrative notice on top.
Please advice.
Regards,
Mehmet
Sure here they are
No luck for the roll-back. What else options do I have when both of the theme and plugin are all up to date and the latest plugin requires older version of the theme?
Thank you Rose, you have been great. In fact, the whole support system has been excellent, right from the start.
I will definitely be extending my support when my time is up.
It seems to be working as of now. Don’t know what happened for it to start working. Did you change anything from my last post?
Hello Rose,
I do not have FTP server set up on our Google Cloud Instance. The plugin file editor works on WordPress. I can get you or check out the content you wish to take a look at.
Please let me know how we can proceed…
Hello Rose,
Holly molly! Thank you for the instructions. You guys really know how to keep your customers happy.
I have applied your instructions, cleared the caches and everything a few times, but all I get {{et_block_by_brand}} instead of the static block content.
I have even added control echos to the code to see if everything is working as they should but the
“if ($content=='{{et_block_by_brand}}’) ” control does seem to work.
function etheme_block_by_brand($content){
echo "Check 1"; //Works
if ($content=='{{et_block_by_brand}}'){
echo "Check 2"; //Does not work
$terms = wp_get_post_terms( get_the_ID(), 'brand' );
if ( ! is_wp_error( $terms ) && count( $terms ) > 0 ) {
echo "Check 3"; //Does not work
if (isset($terms[0]->term_id)){
echo "Check 3"; //Does not work
$args = array(
'post_type' => 'staticblocks',
'meta_query' => array(
array(
'key' => 'et_brand_id',
'value' => $terms[0]->term_id,
'compare' => '=',
)
)
);
$posts = get_posts( $args );
if (isset($posts[0]->ID)){
echo "Check 5"; //Does not work
return etheme_static_block( $posts[0]->ID, false );
}
}
}
}
return $content; //returns the argument
}
The function just returns the argument variable content which is {{et_block_by_brand}}
I checked the instructions a few times. Am I missing something?
Hello again,
Yes I am using Single Product Builder. No I am using single brands for now. In the future there may be bundle-kit products that may require multiple brand relation.
I am attaching the requested info in the private content area.
I am thinking may be a function on functions.php to automatically display the content or a more hardcore sql but I am lost at both approaches.