Forum Replies Created
-
AuthorPosts
-
Testamentum
ParticipantThank you.
Testamentum
ParticipantHas there been any development on this? Groups are awesome, but not being able to use them inside Elementor is seriously disappointing.
Testamentum
ParticipantThanks, that would be nice. Adding a simpler way of displaying image gallery would also be super helpful.
For what it's worth, if someone's reading this looking for an answer, I managed to solve all the problems in this thread using Elementor custom skin, Advanced Post Queries (free plugin) and ACF.
Everything works with Metabox too, except displaying fields from posts in relation (though, as suggested, it could be done).
Testamentum
ParticipantIs there anything in Metabox like Relationship field type in ACF? This is exactly what I need, this guy is displaying Dealerships info using that (jump to 3:28).
April 22, 2021 at 5:16 PM in reply to: ✅Display existing content in custom field on frontend? #27512Testamentum
ParticipantI'm not a developer, but I did manage to follow the advice. I added that last code before the helper function using the insert php plugin, and the images are outputted like I want them, finally.
But I am getting an error above the images:
Warning: Undefined variable $p in C:\xampp\htdocs\elementor\wp-content\plugins\insert-php-code-snippet\shortcode-handler.php(65) : eval()'d code on line 2
Warning: Attempt to read property "ID" on null in C:\xampp\htdocs\elementor\wp-content\plugins\insert-php-code-snippet\shortcode-handler.php(65) : eval()'d code on line 2
This is the code:
<?php
rwmb_meta( 'image_advanced', '', $p->ID );
rwmb_the_value( 'holidayimg', array( 'size' => 'Thumbnail' ) );How can I fix this?
April 22, 2021 at 2:47 AM in reply to: ✅Display existing content in custom field on frontend? #27475Testamentum
Participant- ok, I managed to display the images with that code. But, it only works for the CPT I am creating the single post template.
That is, I added Imagedvanced images to both types of posts - Vacations and Hotels. With the code I can display Vacations images on Vacations single post template.
But how can I display images from Hotels posts on Vacations template? (They are linked in MB Relationships.)
April 19, 2021 at 10:42 PM in reply to: ✅Display existing content in custom field on frontend? #27393Testamentum
ParticipantThank you for the reply. I did as instructed - or, how I understood it 🙂 I added all the destination infos as custom fields, and it works when I add them to single template in elementor.
But I have two problems now:
1) I cannot display the destination gallery - I added the gallery as Image Advanced post type. What's the correct way to setup the custom field and display the galleries?
2) How would I display custom fields for more than one post? I created a vacation package, and added the hotel fields. it displayed on the frontend when there was just one hotel added. But when I added the second hotel, the fields became blank.
So, if I want to display two available hotels in one package, how do I do that? What's the general logic of letting hthe WordPress know it needs to display fields for all CPT connected with those fields?
Testamentum
ParticipantResaving the permalink was the first thing I tried.
I disabled all plugins, switched back to default WordPress theme, but it's still the same.
Testamentum
ParticipantOk, here are the images. You can see the post in the backend looks ok, has content. On the archive page title and featured image are loaded correctly. But when I open the post, it's blank.
Yes, I already tried resaving the permalinks, but no go.
-
AuthorPosts