Forum Replies Created
-
AuthorPosts
-
[email protected]
ParticipantThank you, great response!
I managed it via Scripts Organizer plugin in Oxygen.
I suggest to include this little tutorial into Meta Box documentation.[email protected]
ParticipantFor 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.[email protected]
ParticipantHello 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.March 1, 2022 at 11:09 PM in reply to: ✅Oxygen builder: Displaying a related posts field in a repeater #34218[email protected]
ParticipantI 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.[email protected]
ParticipantImportant 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[email protected]
ParticipantThank 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 -
AuthorPosts