Support Forum » User Profile

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Custom CSS class #35521
    kapitanpejsek@gmail.com[email protected]
    Participant

    Thank you, great response!
    I managed it via Scripts Organizer plugin in Oxygen.
    I suggest to include this little tutorial into Meta Box documentation.

    in reply to: Custom CSS class #35498
    kapitanpejsek@gmail.com[email protected]
    Participant

    For now I need to style custom fields in the backend. Where or how would you define test-class-1 and test-class-2 as is on your screenshot? Which css stylesheet does it use? Is the problem Oxy-related?
    Thank you.

    in reply to: Custom CSS class #35479
    kapitanpejsek@gmail.com[email protected]
    Participant

    Hello again.
    I understand where to put classes, I don't know, where to define them. It is probably trivial, but I'm stuck here. I've tried some classes I already use globally, but no success.
    I'm an Oxygen user, if it's relevant.

    kapitanpejsek@gmail.com[email protected]
    Participant

    I achieved a minor success following this tutorial. https://youtu.be/D1h5stQdW6c
    It works perfectly in a single post template. Trouble comes with repeater card and using just some related data inside it. That is what I'm struggling with. The repeater inside of repeater needs to be the last element of the card, because it somehow breaks the query below it.

    in reply to: Views Shortcodes in Oxygen repeater #30524
    kapitanpejsek@gmail.com[email protected]
    Participant

    Important finding. rwmb helpers (via codeblock) work with repeaters, oxygen just does not show the data in the backend. Views shortcodes still not solved. My shortcodes are pretty simple. {% set field = attribute( post, 'cf-misto-konani' ) %}
    {{ field.name }}

    Do you occasionally know how to tune it up so it works within a repeater too? I'm still diggin, but any advice would be appreciated.
    thanks

    in reply to: Views Shortcodes in Oxygen repeater #30507
    kapitanpejsek@gmail.com[email protected]
    Participant

    Thank you for your answer. I'm not that technical, but I'm trying to get through it. It is very important for my current and future projects. Now I see what is the problem. I need to tell rwmb helper function correct post id. I need to pass the correct third argument, as you suggest. I did some experiments with the repeater. I'm able to get correct post ID for each post within loop by using Oxygen dynamic field (in my case 187). But when I try to use this php code inside repeater

    <?php
        echo 'The current post ID is: '.get_the_ID();
    ?>

    it returns ID of the "parent" post (in my case 189).

    Tried also this code. Still returns "parents'" ID 189

    <?php
        $examplePost = get_post();
     
    echo $examplePost->ID; // Display the post's ID
    ?>

    I also tried this hoping I will get the right custom value and know I'm on the right path, but I just got internal server error.

    <?php
        rwmb_the_value ('cf-misto-konani',,$post_id = '187');
    ?>

    I hope I make myself clear.
    thanks

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