Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 39 total)
  • Author
    Posts
  • in reply to: Custom fields won't save (again...) #44011
    OlivierOlivier
    Participant

    Thank you Peter, I have shared them via the contact form as indicated.. I appreciate you looking into it a lot

    in reply to: Custom fields won't save (again...) #43927
    OlivierOlivier
    Participant

    Peter, thank you for trying. I could but I don't have a staging website, that would be quite complicated. Do you have any idea what could cause this issue, so I could try to test them?

    in reply to: Custom fields won't save (again...) #43873
    OlivierOlivier
    Participant

    I have no idea where that 'old data' is stored as it keeps coming back. The only change (other than updating custom fields) I made to that page recently is to update the permalink, in case that's relevant

    in reply to: Custom fields won't save (again...) #43872
    OlivierOlivier
    Participant

    I also tried clearing the cache for that page, and cleared the cache of the field group. No change.

    in reply to: Custom fields won't save (again...) #43871
    OlivierOlivier
    Participant

    Here is the field group export, in case you were going to ask: https://pastebin.com/amnhGSv4

    in reply to: After Edit, Custom Field Group Only Applies to "Posts" #43114
    OlivierOlivier
    Participant

    I had the exact same problem. I increased max_input_vars and it solved it.

    Surprising because I didn't think I had reach the limit of '1000 inputs' already (by previous value). I have less than 100 custom fields on that page alone, so I don't know what counts as 'input'. But anyway, it's solved for me.

    in reply to: Relationship working on Author page but not Post #41663
    OlivierOlivier
    Participant

    Actually, I think the first line {% set post_id = mb.get_post_id() %} is not necessary. It works without it.

    in reply to: Relationship working on Author page but not Post #41662
    OlivierOlivier
    Participant

    For anyone reading this in the future, for reference here is a code that works for my use case (finally!).

    {% set post_id = mb.get_post_id() %}
    {% set author_id = mb.get_the_author_meta( 'ID' ) %}
    
    {% set args = { 
        post_type: 'licensee', 
        relationship: { 
            id: 'user-provider', 
            from: author_id 
        } 
    } %}
    
    {% set posts = mb.get_posts( args ) %}
    
    {% for post in posts %}
        <a href="{{ post.url }}">
            <div class="mb-container related-provider provider-related-to-user">
                <div class="provider-logo">
                    {% set field = attribute( post, '_thumbnail_id' ) %}
                    {% if field is defined %}
                        {% for item in field %}
                            <img src="{{ item.medium.url }}" alt="{{ item.medium.alt }}">
                        {% endfor %}
                    {% endif %}
                </div>
                <div class="provider-name">
                    <span>{{ post.title }}</span>
                </div>
            </div>
        </a>
    {% endfor %}

    Nobody here could help me apparently, but ChatGPT helped me without hesitation. Working code, awesome!

    in reply to: Relationship working on Author page but not Post #41643
    OlivierOlivier
    Participant

    If I just enter a User ID like 7 it works, but if I place the {{ author.ID }} variable it breaks the page. Does the {{ author.ID }} variable return anything else than the actual author user ID?

    in reply to: Relationship working on Author page but not Post #41642
    OlivierOlivier
    Participant

    Oh, I rejoiced a bit too fast unfortunately. The View was set up for testing with the user ID "7", but of course I need a variable. I tried {{ author.ID }} but it still breaks the page...

    in reply to: Relationship working on Author page but not Post #41641
    OlivierOlivier
    Participant

    Ah gotcha - I got tricked by my own slug rewrite. Thank you Peter!!

    in reply to: Relationship working on Author page but not Post #41633
    OlivierOlivier
    Participant

    Thank you Peter, I just submitted a message with the login credentials

    in reply to: Relationships and capabilities #41632
    OlivierOlivier
    Participant

    I understand - thank you Peter

    in reply to: Relationships and capabilities #41591
    OlivierOlivier
    Participant

    Peter,

    I think I understand - and I'm not expecting MetaBox to manage capabilities. But for example when creating a CPT with MetaBox, there is a Capability type option, and one can choose either Post, Page, or Custom.

    By choosing Custom, I can then use another plugin to manage these capabilities for my user roles.

    I would like the same flexibility for custom taxonomies and for Relationships. Basic capabilities such as read/edit/create would do the job. So my question is whether MetaBox can define the capabilities so that I can manage it with a third-party plugin.

    in reply to: Relationships and capabilities #41568
    OlivierOlivier
    Participant

    Thanks Peter. So if you say it's beyond the scope of Meta Box, am I correct in understanding that Meta Box natively registers no capability that can be used to control permissions, and that it otherwise offers no feature or hooks to be used in a multi role environment?

    I see MB registers at least 3 capabilities
    - create_metabox_field_groups
    - delete_metabox_field_groups
    - edit_metabox_field_groups

    But that's all - is that correct?

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