Как получить мета-сообщения в файле JS
Изменение мета поста пользователем $post_id
my Js файл
var idurl = get_post_meta($post->ID, 'nalbums', true);
var settings = $.extend({
xmlPath: "http://localhost/wp/wp-content/plugins/ ... t="+idurl+"",
autoStart: true,
shuffleStart: false,
replayStart: false,
playList: "hide",
blurLevel: 10,
colorRGBA:"168,24,58,0.3"
}, options );
Подробнее здесь: https://stackoverflow.com/questions/356 ... cript-file