I have been suffering for a week, I can’t but how to find a solution! = (The problem is the following - there is an online store on Woocommerce in the database. I created a new column with the name (saller) and made its output to the item card:

$id = $product->get_id(); $posts = $wpdb->get_results("SELECT seller FROM wp_posts WHERE ID = '$id'"); <span class="sku_wrapper">Продавец: <span class="sku"><?php echo $posts[0]->seller; ?></span></span> 

now I need to bring this cell to the basket itself opposite the product. Help me please...

  • there is a global $ product, $ wpdb line; ? var_dump ($ posts); - watched? - Valera Kononenko
  • Yes, there is no cell in the array that I added ((( - Alexander Ena

0