Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #36019
    #36069
    Profile photo of Chrisroll
    Chrisroll
    Participant

    Hi, Hebstreit,
    Try this, I think it should work :

    You have to put your extra metadata fields in Symbiostock/Settings/Media/read ExtraMetaData (SubjectCodes for example)

    Then, add this in your theme’s functions.php if you want SubjectCodes field value populate your product short description (post_excerpt) :

    add_action(‘ss_read_extra_exif_end’,’_my_custom_function_writeskufield’,10,3);
    function _my_custom_function_writeskufield($postid,$fieldname,$value) {
    if ($fieldname == ‘SubjectCodes’) ss_update_post_meta($postid, ‘post_excerpt’, $value);
    }

    Chris

    #36075
    Profile photo of Hebstreit
    Hebstreit
    Participant

    Hello, Chris,

    Thanks for your help, I’ve tried a lot but I think that I will take a different way – it is not the media – I was able to read the subject code as a title for example into the Woo/Product with Symbiostock. I also changed the formatting of your code from ‘ to ‘ (clean ‘) … but it still won’t work – not in the test environment and also not on the main page.

    I’m going a different way now – I think i want to place only generic content in the short description depending on the category where I can use the Woo-Hooks&Filters. 🙂

    Many greetings,
    Knut

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.