Add / Update Custom Fields After Select Pictures in Media Window

I modify my jquery / js like this.. $(document).ready(function(){ // $(‘#insert-my-media’).click(open_media_window); if($(‘#images_id’).val() != ” && $(‘#images_url’).val() != ”){ $(‘#open_media’).text(“Edit Slider”); } $(‘#open_media’).click(function(e){ e.preventDefault(); var target = $(‘#images_id’); var target_url = $(‘#images_url’); var btnSave = $(‘#publishing-action input.button’); if(target.val() == ” && target_url.val() == ”){ var wpmedia = wp.media({ title: ‘Insert a media’, library: {type:’image’}, multiple: true, … Read more

Trying to store submenu items to render out after main menu

Yesterday I had the same kind of problem and I decided to ditch the walker alltogether and use the wp_get_nav_menu_object and wp_get_nav_menu_items functions instead. If you var_dump($menu_items) you can see which properties are available. Here’s a snippet of my code that builds the menu named ‘main’ for my twitter bootstrap menu: $menu_name=”main”; // name of … Read more