Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • in reply to: โœ…Need guidance if MB can create a Business Directory #30765
    RogerRoger
    Participant

    Did you find anything @digitanos?

    RogerRoger
    Participant

    cool! Glad that i whas able to help someone this time ๐Ÿ™‚

    RogerRoger
    Participant

    what is the name from your custom post type?

    RogerRoger
    Participant

    So if i stand correctly, you want the field with the name Headline to be the post title?
    If so.

    Edit your post type within metabox
    Go to Supports
    Make sure Title is turned of

    Then create a code snippit (download first a snippit plugin)

    
    function change_post_title_by_field_value( $post_id ) {
        if ( get_post_type( $post_id ) == 'YOUR_CUSTOM_POST_TITLE_HERE') {
            $headline_title= rwmb_meta( 'headline', $post_id );
            $title = $headline_title;
            $title = sanitize_text_field( $title );
            $new_slug = sanitize_title( $title );
        } else {
            return;
        }
        
        // prevent a loop
        remove_action('save_post', 'change_post_title_by_field_value');
        
        $content = array(
            'ID' => $post_id,
            'post_title' => $title,
            'post_name' => $new_slug,
        );
        wp_update_post($content);
        
        add_action('save_post', 'change_post_title_by_field_value');
        
    }
    add_action('save_post', 'change_post_title_by_field_value');
    
    in reply to: โœ…Custom field changes won't save #24690
    RogerRoger
    Participant

    would never have found this without your answer! really thank you!!

    Also if someone has the same issue, with direct admin you can find it here:
    Select PHP version -> Options -> max_input_vars

    You can find the Select PHP version under the advanced Features

    in reply to: โ„น๏ธPlugin request #23699
    RogerRoger
    Participant

    I know that solution, but the rest routes plugin is different. it makes it for non-devs a lot easyer to do query's.
    Think about it.
    Buildingthe fields and posts with metabox.
    Building a easy clickable query to filter or to build a awesome form without any coding or any snippet (even if it is a snippet then it can be a created code what someone can copy paste). Or creating a query and BAM getting all the information with a shortcode in a smooth datatable view! You want a clickle link? BAM assign it from that tool and say you want to open view that belongs to that post.

    check the official website.
    https://restroutes.com/#home

    I really think you that it can metabox a better tool for non dev's!

    in reply to: โœ…connect CPT student to CPT attendance #20574
    RogerRoger
    Participant

    Maybe it's just me but do you understand my question? I can read the documentation a zilion times it still does not make any sense how i can get this to work.

    You think i can use the field post... oke so i will write post in the function.php at the relation setting. that will not do the trick!

    Meta box is advertising with we got your back. No php knowledge is needed.
    I just want to keep track of the attendance from children! @ahn? please?

    in reply to: โœ…connect CPT student to CPT attendance #20570
    RogerRoger
    Participant

    oke. but what then? could you explain how i can create a list with the names in that posttype with the radio buttons behind it?

    in reply to: โœ…Default value/button for button_group #20541
    RogerRoger
    Participant

    sir? anyone?

    in reply to: โ„น๏ธMB Relationships within Builder #20493
    RogerRoger
    Participant

    any news regarding this?

    in reply to: โœ…Default value/button for button_group #20468
    RogerRoger
    Participant

    Any update regarding this?

    in reply to: โœ…group with fields and names in a table #20384
    RogerRoger
    Participant

    I can see the archive but i wont get the information that i asks... Will try it on a other way ๐Ÿ™

    RogerRoger
    Participant

    any updates regarding the video guides?

    in reply to: โœ…Show stars when value = X #20312
    RogerRoger
    Participant

    This thread can be closed. If more people are searching for this they can use my example.

    in reply to: โœ…Show stars when value = X #20256
    RogerRoger
    Participant

    That will do! thnx!

    But also found a other solution... Install the Fontawesome plugin.
    then go to view

    
    {% for i in 1..5 %}
    {% set starClass = (value_of_the_rating_will_be_placed_here_without_the_{} >= i ? "fa fa-star checked" : "fa fa-star unchecked")  %}
         <i class="{{ starClass }}"></i>
    {% endfor %}
    

    In the CSS

    .checked {
      color: orange;
    }
    .unchecked  {
      color: Grey;
    }

    BTW this did cost me almost 2 months.... can you guys do a good views tutorial, please!!

Viewing 15 posts - 1 through 15 (of 16 total)