Trying to append content to Short Description in WooCommerce
Hello!
I'm trying to add some content to the short description in the single product view. I've created a div that contains Post Objects from an Advanced Custom Fields Post Object field.
I've got the code below, but instead of appending, it's actually replacing. I can see why, but I can't figure out how to bring back the summary in the code.
Hi This is working, however, I'm only seeing the name of the actual post listed three times no matter how many or what juices I add in the Post Object custom field. Not sure what going wrong..
OK. That all looks OK. Now on a particular product page, make sure you've selected some Posts that have the correct titles you want to display. Then test the new code I've posted. The code should work, but it looks like you've just selected additional products that have the same title, which is why you're seeing the same title several times.
Chris Stanyon
Ah. Brilliant :)
Glad it's working
Alicia St Rose
ASKER
Actually, they were all different, but were somehow pulling in the current product/post title instead of the post objects I'd selected.
Now, I've got to remove the list from the Variation Description. Looks like the description hook works on both...
I think you have too. Just done a quick search and it looks like a bug in WooCommerce. The solutions provided seem to suggest hiding it with CSS. Not ideal, but it should work fine.