Forum Replies Created
-
AuthorPosts
-
October 10, 2024 at 3:59 AM in reply to: ✅Custom Post no longer editable (displays no content when pressing edit) #46650
Fredrik
ParticipantSolves it!
October 9, 2024 at 9:38 PM in reply to: ✅Custom Post no longer editable (displays no content when pressing edit) #46643Fredrik
Participant*can not
October 9, 2024 at 8:34 PM in reply to: ✅Custom Post no longer editable (displays no content when pressing edit) #46642Fredrik
ParticipantThe issue seems to be that for some reason the Custom Fields for this Post type don't apply to this Post type any more. And I can set it back to do so. Screen recording here.
October 9, 2024 at 8:25 PM in reply to: ✅Custom Post no longer editable (displays no content when pressing edit) #46641Fredrik
ParticipantIMPORTANT UPDATE!
Ut's not even query at all now. This is breaking a live website, so the problem is acute to solve!
September 16, 2024 at 10:43 PM in reply to: Getting the field data (text and images) for specific sections in cloned groups #46480Fredrik
ParticipantI forwarded this to Bricks Support and their response is that custom codiing is generally outside of their support scope, but that:
But, if you have an image, and you call custom function
{echo:get_my_image}, and this function returns ID of the image (media file), it will show it.So
{echo:custom_image}Together with this function
function custom_image() { return 162; }Will render the image with an id of 162.
Does that help with figuring out the last bit for you?
September 14, 2024 at 2:46 AM in reply to: Getting the field data (text and images) for specific sections in cloned groups #46455Fredrik
ParticipantSure, this is what it looks like in the code view
<?php $groups = rwmb_meta( 'aspects' ); foreach ( $groups as $group ) { // Field heading: echo $group[ 'heading' ] ?? ''; // Field accent_heading: echo $group[ 'accent_heading' ] ?? ''; // Field text: <?php $values = $group[ 'text' ] ?? []; <?php foreach ( $values as $value ) : ?> <div class="my-content"><?= $value ?></div> <?php endforeach ?> // Field images: $image_ids = $group[ 'images' ] ?? []; ?> <h3>Uploaded images</h3> <ul> <?php foreach ( $image_ids as $image_id ) : ?> <?php $image = RWMB_Image_Field::file_info( $image_id, [ 'size' => 'thumbnail' ); ?> <li><img src="<?= $image['url']; ?>"></li> <?php endforeach ?> </ul> <?php } ?>September 12, 2024 at 11:18 PM in reply to: Getting the field data (text and images) for specific sections in cloned groups #46437Fredrik
ParticipantGood!
It's Image advanced, where I need a function to grab either the 1st, 2nd, 3rd and so on of a specificed clone.
September 9, 2024 at 11:03 PM in reply to: Sorting on date in query loop fails in Bricks Builder #46386Fredrik
ParticipantIt works when I use a date field NOT in a group. How can I call upon the date field within a group in Bricks?
-
AuthorPosts