Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 121 through 135 (of 166 total)
  • Author
    Posts
  • EddyPiVEddyPiV
    Participant

    Thanks Long, I couldn't get it working this way, but I found another solution.
    Consider it closed.

    in reply to: Updated plugin, Field Group lost #19937
    EddyPiVEddyPiV
    Participant

    Very strange, but after a good night sleep it turns out that the field group is back...

    No idea why or how, I double checked yesterday before raising the issue.

    Anyway, it looks alright again, so consider it closed.

    EddyPiVEddyPiV
    Participant

    That's what I did, and yet I get to see the posts of all other values for the taxonomy as well.

    The selection: https://share.getcloudapp.com/6qu5jo5z

    The result: https://share.getcloudapp.com/d5uvmXPR

    For info, as the site in in Dutch language: Geloofsgemeenschap = Location, Nieuwsberichten = Newsitems

    in reply to: How to set a class for the button? #19803
    EddyPiVEddyPiV
    Participant

    Excellent! Thanks a lot.

    in reply to: How to set an expiry date to a (custom) post type? #19782
    EddyPiVEddyPiV
    Participant

    Okay, but then I still have to do a calculation in one way or the other. I was hoping that such function would exist somewhere in the toolbox.
    I have solved it by using yet another plugin... I was trying to avoid it, but I am not a skilled coder...

    Thanks, consider it solved.

    EddyPiVEddyPiV
    Participant

    Okay, I have dropped the contents and used a text area instead. Happy with the result.
    Thanks!

    in reply to: How to refer to cloneable single_image field? #14299
    EddyPiVEddyPiV
    Participant

    I'm running PHP 7.2.

    in reply to: Limit the number of "favorites" in radio buttons #14290
    EddyPiVEddyPiV
    Participant

    Unfortunately not. The submit button doesn't get dimmed when more than 3 items are marked as specialty.

    in reply to: Limit the number of "favorites" in radio buttons #14251
    EddyPiVEddyPiV
    Participant

    Hi Anh,

    To count the number of favorites, I have the following JS:

    jQuery(document).ready(function( $ ){
    $(document).ready(function () {
      $('.count input').attr('readonly', true);
      $('.radio').change(function () {
        var count=0;
        $('.radio input:checked').each(function(){
          if ($(this).val().replace(/V_/g,'')=="Specialiteit") {
            count += 1;
          }
        });
        $('.count input').val(count);
      });
    });
    });

    That works nicely. (Btw: "Specialiteit" = Specialty, so I'm counting the specialties instead of favorites)

    How to add your code there?
    I created another JS file with the following code, but the submit button never gets disabled.

    $( 'input[type="radio"]' ).on( 'change', function() {
        var $submitButton = $( '.rwmb-form-submit' ).children( 'button' );
        if ( .count() > 3 ) {
            $submitButton.prop( 'disabled', true );
        } else {
            $submitButton.prop( 'disabled', false );
        }
    } );
    in reply to: How to refer to cloneable single_image field? #14250
    EddyPiVEddyPiV
    Participant

    Anh,

    When I add this code to XYZ PHP Code Snippet, the webpage stops loading.
    What am I doing wrong?

    in reply to: Limit the number of "favorites" in radio buttons #14224
    EddyPiVEddyPiV
    Participant

    Hi Anh,

    I have taken up this idea again to limit the number of favorites.
    Currently the number of favorites is counted and that number is shown on screen.

    What I want to do next is to dim the Save/Confirm button as long as the counter is higher than the number of allowed favorites.

    How can I do that?

    in reply to: How to refer to cloneable single_image field? #14221
    EddyPiVEddyPiV
    Participant

    To add here: I guess it would be better to display the images as a gallery, so that the images are all nicely displayed, also if e.g. the 2nd image would be deleted.

    How to disply the images as a gallery?

    EddyPiVEddyPiV
    Participant

    So simple... Excellent! Thanks a lot.

    EddyPiVEddyPiV
    Participant

    Hi, for this purpose I am using the plugin WP Users Media from Damir Calusic.

    in reply to: Change Destination Of Custom File Upload Field Type #13453
    EddyPiVEddyPiV
    Participant

    Hi Anh,

    Great feature!

    I would like to use it in a multisite installation. Is there a way to upload it to an upload folder within that subsite, without hardcoding the sitenumber in the path?

    For multisite installation the regualar path is ../wp-contents/uploads/sites/<sitenumber>/<foldername>.
    Is it possible to specify as path ../wp-contents/uploads/<foldername>, and that automatically the /sites/ and sitenumber are added?

    It would make setting up a new subsite so much easier...

Viewing 15 posts - 121 through 135 (of 166 total)