Aaron Bazinet
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Update: I did find in the Elementor menu, there is an Element Manager where you can view all Elementor elements in use as well as elements from plugins. You can narrow the list by using the search or with dropdowns to list by specific plugins or active status.
It still stands though that it would be useful to have in the EA Elements Admin some indicator for each element whether or not it’s being used, how many times, and on what pages/templates.
I got some help on the Types plugin forums on the file size. Here’s what I got:
<?php global $wpdb; $fileurl = types_render_field('pod-audio', array('raw'=>'true')); $attachment_id = $wpdb->get_var($wpdb->prepare("SELECT ID FROM {$wpdb->posts} WHERE post_type = 'attachment' AND guid=%s", $fileurl )); $filesize = filesize( get_attached_file( $attachment_id ) ); ?> <enclosure url="<?php echo $fileurl; ?>" length="<?php echo $filesize; ?>" type="audio/mpeg" /> <guid><?php echo $fileurl; ?></guid>I still need a way to get duration. You’d think with files uploaded through WP’s uploader that WP would pull as much metadata in as possible, and duration seems like a key piece.
Forum: Fixing WordPress
In reply to: Jetpack contact form by do_shortcode with page author emailViktor, that works great, thank you!
Viewing 3 replies - 1 through 3 (of 3 total)