Support Forum » User Profile

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • BomesBomes
    Participant

    Hey Aishwarya,

    did you find a method to programmtically add values to the select2 in the frontend? could you elaborate that?

    Kind regards

    in reply to: Callback / Filter for MB Group Title? #45228
    BomesBomes
    Participant

    I have finally found a solution that worked for me:

    
    // upon start
    $('#kurstermine .rwmb-clone').each(function() {
        $(row).find('h4.rwmb-group-title').text('my caption')M
    });
    
    // whenever setting is changed
    $('#kurstermine').on('change', 'input.rwmb-date', function() {
        $(row).find('h4.rwmb-group-title').text('my caption')M
    })
    in reply to: Callback / Filter for MB Group Title? #44902
    BomesBomes
    Participant

    Got that, thank you.

    Any hint for good approach to format those group_title? I looked through the code a bit and it seems the group_title is only built within js on the frontend, is it?

    I was just playing around with the hooks/filters for default / meta calls and didnt come to a reasonable approach. Also I was thinking about creating a helper field and wondered if I could dynamically create default values. sanitize hooks are only called upon save not on changes within the form, are they?

    in reply to: Icon field not loading icons in post edit page #44689
    BomesBomes
    Participant

    when opening up selectbox it seems like ajax could be the failure, it retrieves an html instead of the (i guess) expected json: Uncaught SyntaxError: expected expression, got '<' from ̀term.php - so it looks like a bug, doesnt it?

    in reply to: Icon field not loading icons in post edit page #44688
    BomesBomes
    Participant

    Is it already solved? I tried to add a custom dir and neither absolute nor relative paths seem to work, dropdown stays empty

    BomesBomes
    Participant

    I exchanged "Europe/Berlin" by date_default_timezone_get() - made it work for me though is not 100% correct.

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