• Resolved Rachel

    (@jaxrachel)


    Hi, I was wondering if anyone has successfully used the Elementor Pro Theme Builder to build out a custom Show single page template, by pulling in the metadata into dynamic fields (e.g. text editor where the content is dynamically pulling the show description)?

    I would love to be able to use Elementor to display show content to better fit my theme design as well as fix some responsive issues on mobile, and add additional ACF custom fields in key areas of the page. All I’ve been able to pull so far are simple fields like phone number. Can’t get the Avatar to show up, show times, etc other more complex fields. My php knowledge is minimal and so was hoping if someone’s done it already, they could share how they made it work. I have dynamic.ooo plugin as well but have thus far been unsuccessful pulling anything more complex than basic text fields.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Rachel

    (@jaxrachel)

    **Note, even figuring out how to pull in individual blocks/sections of the page as a whole would be immensely helpful. (e.g. show_images, show_meta, show_times) so i could rearrange and stack differently on mobile…

    Plugin Author Tony Zeoli

    (@tonyzeoli)

    ASFAIK, we haven’t had any specific requests yet to support Elementor. We do have an API here: https://radiostation.pro/docs/API/. But since your knowledge of PHP is limited, you may have to enlist a developer to assist. We have yet to break out a few options in PRO at the moment, like Episodes. You’ll see the list of endpoints at the bottom of the API document, which haven’t been added just yet.

    We have yet to split Radio Station PRO into blocks. That is on the roadmap, but it won’t be available for quite some time as we have a few other things in our priority queue at the moment.

    This type of request is best suited for our Github tracker as feature enhancements or requests, which you can find at https://github.org/netmix/radio-station.

    Outside of that, @mjaick, Radio Station’s lead developer, may be able to assist further. I’ll ask him to check in on this thread.

    • This reply was modified 2 years, 8 months ago by Tony Zeoli.
    Thread Starter Rachel

    (@jaxrachel)

    Thank you so much! Honestly even being able to move the show_controls sub-block out of the image block and into the meta block would be immensely useful. i’ve been able to accomplish much of what i need via CSS already, but don’t understand how the filters work to be able to move that one specific section…. and/or even just make a “visit Website” link show up under the meta block (then i could hide the show_controls sub-block altogether). see screenshot as reference: https://tinyurl.com/y6uxznkd

    Plugin Author Tony Zeoli

    (@tonyzeoli)

    This is something that @majick will have to take in to help you with. He’s out lead developer. I know he’s heads down in a project at the moment, but I’ll reach out to him to ask him to reply. While I founded Radio Station, I’m not a developer. More of a product manager.

    Since the plugin is not block ready, you’ll probably have to use filters and maybe – if there isn’t one readily available I the docs, he can assist with that.

    Plugin Contributor Tony Hayes

    (@majick)

    @jaxrachel You can add a custom HTML block to the meta block section this way:

    
    add_filter( 'radio_station_show_meta_block_order', 'custom_show_meta_block_order' );
    function custom_show_meta_block_order( $meta_block_order ) {
        $meta_block_order[] = 'website';
        return $meta_block_order;
    }
    add_filter( 'radio_station_show_meta_blocks', 'custom_show_meta_blocks', 10, 2 );
    function custom-show_meta_blocks( $meta_blocks, $post_id ) {
        $website = get_post_meta( $post_id, 'show_link', true );
        $meta_blocks['website'] = '<div><a href="' . esc_url( $website ) . '" target="_blank">Visit Show Website</a></div>';
        return $meta_blocks;
    }
    

    As for getting other values, I’d suggest two approaches:
    1. you could retrieve the data you want using the REST API as the data endpoints made available via the plugin. You can use javascript to retrieve this JSON data and write HTML from it. Of course you would need to be good with javascript to do this.
    2. If the data you want to access doesn’t explicitly have it’s own post meta key already, or it isn’t in the format you want, you could use the save_post hook so that when the post is updated, you can grab whatever data you want and update a post meta value. Then you can retrieve and use that value in Elementor as you are already doing.

    Plugin Author Tony Zeoli

    (@tonyzeoli)

    This ticket has been inactive for a few weeks, so I’m going to close it. If there are any further requests, please open a new ticket.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Using custom field data with Elementor Pro Dynamic selectors’ is closed to new replies.