Tag Info

New answers tagged

0

I got my answer here with this snippet: if(!defined(ABSPATH)){ $pagePath = explode('/wp-content/', dirname(__FILE__)); include_once(str_replace('wp-content/' , '', $pagePath[0] . '/wp-load.php')); } I included this before any other HTML/PHP.


0

the_field() function need a field name parameter and it must inside a loop.


0

There is a fatal error in your source (module-audio-popup.php) : Fatal error: Call to undefined function the_field() in /home/website/public_html/sites/fm/wp-content/themes/trickstarfm/assets/inc/modules/module-audio-popup.php on line 11 I will remove this answer later on, but posting this as a comment wouldn't make a readable post.


0

Here's a quick example showing how you would pass php data to your script. First, we hook our function to the wp_enqueue_scripts action. Inside, we enqueue the script that contains the player and initialization code (this is probably two separate files, but I've condensed it to a single file in this example). Next, we call wp_localize_script and set some ...


0

I figured this out. It's because the title isn't part of the attachment metadata technically. The audio attachment itself is stored in the database as a post with a post type of attachement and applicable mime type. To update the title of the audio is to update the post title



Top 50 recent answers are included