Forum Replies Created
-
AuthorPosts
-
Joe
ParticipantOops, I forgot to explain , what I want to achieve, I want to display the thumbnails of all authors, every thumbnail should get a different random class, what's the best way to achieve this ? using the code above ?
June 17, 2023 at 1:34 PM in reply to: Searching for Forum Post - Inline Editing Code on Admin Page #42256Joe
ParticipantNo Peter, this comment was made by a user, and he actually wrote code, that everyone can use to edit custom fields directly on the admin page. I just can't seem to find that post anymore ๐
June 16, 2023 at 1:18 AM in reply to: Searching for Forum Post - Inline Editing Code on Admin Page #42238Joe
ParticipantHi Peter,
I think it was for a custom field, to edit directly on the admin page, without entering the post page, maybe a month ago, I am not sure, thanks for askingJune 15, 2023 at 2:28 PM in reply to: โ Problem : Saving a sub-field of a group into a separated custom field #42219Joe
Participantworking now
June 15, 2023 at 2:28 PM in reply to: โ Problem : Saving a sub-field of a group into a separated custom field #42218Joe
Participantplease disregard my bad, sorry
June 15, 2023 at 2:13 PM in reply to: โ Problem : Saving a sub-field of a group into a separated custom field #42217Joe
ParticipantSorry I forgot to add : this is supposed to work in the BACKend
March 8, 2023 at 4:30 PM in reply to: How to display the User Avatar, relationship CPT and User #40886Joe
ParticipantPlease delete this, I made a little logical error here
Joe
ParticipantYes I am such a hero ๐
$test1 = rwmb_meta( 'user_hero_image', ['size' => 'full', 'object_type' => 'user'], $current_user_id ); echo '<img src="' . $test1['url'] . '">';Joe
ParticipantToo bad , got rexcited too fast, this code works but it only displays the thumbnail
Joe
ParticipantI just found out how to do it , doohhh
heres the solution for other people :
$current_user_id = get_current_user_id(); $user_data = get_userdata( $current_user_id ); //get all data for the current user $test1 = rwmb_meta( 'user_hero_image', ['object_type' => 'user'], $current_user_id ); echo '<img src="' . $test1['url'] . '">';Joe
Participantthe printf line is wrong : it should just be : the_title()
January 21, 2023 at 7:20 PM in reply to: โ column still takes its width space when visibility and display hidden #40276Joe
ParticipantHi Peter ,
any news about this?Problem I am having is this : I am using Open Maps and I am displaying all fields in the backend, a lot of times half of them are empty, those I do not want to show, when I hide them with the conditional the form looks somehow unfinished and is is full of empty space, looks terrible
Joe
ParticipantHi,
I just found out how to do it, here for whoever has the same problem,
just add a codeblock in the repeater and add the following :<?php $connected = new WP_Query( [ 'relationship' => [ 'id' => 'add-here-the-id-of-your-relationship', 'to' => get_the_ID(),], 'nopaging' => true, ] ); while ( $connected->have_posts() ) : $connected->the_post(); ?> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <?php endwhile; wp_reset_postdata(); ?>Joe
ParticipantSame here, cannot access the cpt screen, using MB AIO latest version
Joe
ParticipantHi Ronald, how have you solved the problem ?
-
AuthorPosts