I call mediaelementplayer() from ajax success function. It works for me.
$.get(ajaxPostUrl,function(data){
var posts = $(data).find('.post');
$('#post-container').append(posts);
posts.find('video,audio').mediaelementplayer(/* Options */);
});
Related Posts:
- Opinions and recommendations on the best barebones base theme [closed]
- Adding admin-ajax.php to the frontend. Good or bad idea?
- Different template of products for specific category. WooCommerce
- what the best way to include images from the template’s images folder?
- How do I add support to my theme for custom menus?
- How do I white label my self-hosted site created by wordpress?
- WordPress 5 / Gutenberg – theme doesn’t have featured image option showing up
- How to refresh WordPress Customizer panel upon entering a value
- Set Featured Image for Archive templates
- How do I add a new string to a .po or .pot file?
- Free/Open-Source Theme Frameworks as an Alternate to Thesis? [closed]
- can require “themefolder/includes/widgets.php” in “themefolder/functions.php” yet widgets.php doesn’t run
- Multisite: setting theme and options when a new blog is created
- How to use scss in wordpress theme?
- How to get Ajax into a theme – without writing a plugin?
- How to add the main style.css to my index.php?
- Creating Multiple Menus when using the TwentyTen Theme?
- What does “Trying to get property of non object in..” mean?
- How to delete default themes
- Which theme template is used renders next page
- Problem : deletion failed, the theme requested does not exist
- Download all WordPress.com available themes, somewhere?
- How to stop a 500 error on the WordPress theme folder
- Change Theme from Plugin based on query_vars
- How to mark an option as selected
- Making an IE only site (Like a Mobile only site)
- Archiving annual festival site
- How to know the theme name of a wordpress blog?
- How do I move the page title (H1) to header.php (outside of the loop) in a WordPress theme?
- Theme Development Admin Area [closed]
- adding multiple sidebars on pages
- Varying Search Result Pages
- How to know if user choose to show full post or excerpt?
- .htaccess edits
- Investigating complex themes still slow even with WP caching
- Theme settings default, strange behavior before first save
- Is that worth it to find a designer for creating a WordPress theme for selling on ThemeForest? [closed]
- Howto keep header image when changing theme
- setting a different theme for specific category in wordpress
- Get name of current page template in Gutenberg era
- Mobile issue – website isn’t properly detecting screen size [closed]
- Child Theme not overriding a template section on live site – but is on local site
- Online theme customizer missing details
- Redux callback action
- Problem of running development copy of WordPress on WebMatrix?
- Switching content between summer and winter
- translation does not work for ‘Home’
- Should I implement my own custom theme
- How to translate a string that contains a WordPress sitename
- Advantages of wordpress theme vs wordpress as a backend only [closed]
- Is that a malicious code?
- How can my user make their own Blog/Diary
- Where do I find (free) fully-internationalized themes? [closed]
- How do I manually revert back to my old theme?
- Modifying the markup in the Tag Cloud widget?
- How to trace and resolve a theme problem such as flickering links in WordPress? [closed]
- Child theme looks different from parent theme, and incorrectly displays parts
- Adding an extra sidebar to your theme
- Widgets not showing on sidebars
- linking to an svg through comments_popup_link
- How to use custom page templates in a theme that hides page template option?
- Create Custom Attachment Template That is Processed from Plugin Folder?
- How to include stylesheet in custom admin using parent_slug
- my blog crashes ie7?
- How would I got about calling a php file every time someone publishes a new post?
- Custom theme – pages in menu
- remove preloader in WordPress theme [closed]
- Flexslider in child theme
- How to edit the default comment title?
- Why my function.php file in theme delete automatically? [closed]
- How to reverse the pagination numbers of an archive?
- Theme translates the_author_posts_link. How can I remove their translation?
- Theme CSS missing completely
- How to implement this layout?
- WordPress customizer extremely slow, cant work in it
- Missing privacy policy checkbox on login page (using Enfold theme)
- How exactly does WordPress load themes from api.wordpress.org?
- Themes don’t show up in the dashboard -> Appearance -> Themes
- Let custom text widget use the same font as the theme
- SSL errors when I activate my custom theme
- How to show taxonomy in WordPress shortcode
- wordpress theme link url
- Route to custom file
- “Template is missing” install error on non-child theme
- Create a live demo gallery for themes
- wordpress template page Usage [duplicate]
- No “available widgets” (wordpress 3.2.1 multisite)
- How to create a second index.php?
- Lightword Theme – only one menu item
- how to use Easy Docs theme to write a book?
- How to create an Single-Portfolio page?
- 2 WP websites same content different themes
- How is WordPress child related to Buddypress child theme
- “Parse error: syntax error, unexpected” and the WordPress Theme Editor no longer working!
- Define a Custom Template Part As A Widget Area
- Changing Sidebar In 2023 Theme
- My theme is not translated
- Wrong theme being activated
- I am unable to remove “© 2022 My Blog | PopularFX Theme ” from footer [closed]
- Workaround AJAX calling without directly calling WordPress backend (Admin dashboard) because it is restricted to the end user (the public)