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…
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 3 years, 10 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
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.
@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.
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.