Tagged Questions

JavaScript library with models, collections and views. Requires Underscore.js or Lo-Dash.

learn more… | top users | synonyms

0
votes
0answers
19 views

WordPress integration with Backbone or AngularJS

I'm learning AngularJS, but I notice that a lot of people use Backbone when doing themes with WordPress. Is the decision based on personal preference? or are there parts of the WordPress API made to ...
1
vote
2answers
20 views

Backbone.js and WP API

I'm creating a theme based on the underscore theme with Backbone.js integration. I am struggling to find any clear examples/documentation on the WP-API plugin's capabilities, and starting to find it ...
0
votes
0answers
11 views

Featured-image first image is broken image

I had recently noticed a problem specific to a theme I'm working on, where the "featured image" section fails on the post-editor page. It doesn't give a JS error, and comparing the source with the ...
0
votes
1answer
28 views

What does the “Show Images” do for Wordpress music playlist?

In the new audio playlist in Wordpress 3.9, you can check the options: Show Tracklist Show Artist Name in Tracklist Show Images The last option doesn't really make sense. There is no option to ...
4
votes
1answer
262 views

How to hook in and modify the new revisions UI (3.6+)?

Let's say I want to add some post_meta into the "new" revisions UI. I'm saving some meta on revisions only, and want to display it on this screen. Normally, I'd open up wp-admin/revisions.php look ...
0
votes
0answers
21 views

Backbone is breaking the media uploader

Greets, when using backbone in a plugin of mine the media uploader on the post edit page stops working properly. The uplaod button doesn't work anymore and the drag and drop functionality doesnt ...
0
votes
0answers
150 views

Custom shortcode editor [BackboneJS & TinyMCE)

I'm using Wordpress 3.9.1 and I wrote a custom shortcode that working, but I'd like to custom it a little bit When I use my shortcode, this is the render in the admin page : [toggles ...
0
votes
0answers
82 views

Media Modal load and select external images

I've been trying to extend WordPress/Backbone Modal to use in a plugin I'm developing; basically the point is that I host all my photos somewhere accessible via an API and I want to provide my users ...
0
votes
1answer
302 views

Implementing backbone.js to retrieve category posts using JSON API

Note: I reformulated this post after solving my original problem because I immediately ran into another problem that can fit under the same title. First I'll summarize the first problem and my ...
2
votes
0answers
370 views

Customizing the 3.5 “Add Media” popup (Backbone.js)

Here's yet another question in regard to the new(ish) 3.5 "Add Media" popup and how to customize it! What I'm trying to do I'm attempting to do four main things: 1) Create a custom tab titled ...
1
vote
2answers
354 views

Elegantly using JavaScript on widget admin forms

I'm working on a project involving a lot of widgets, and I'm thinking it'd be really great to have a "More options" section built using jQuery UI Accordion that expands when clicked. So, I've ...
6
votes
2answers
583 views

Using Backbone with the WordPress AJAX API

I'm attempting to build out a simple TODO plugin using Backbone and have run into an issue with the AJAX API. In order to get the correct AJAX call back you have to pass in the "action" parameter ...
2
votes
0answers
686 views

Pros and cons of using Backbone for WordPress theming [closed]

I've been noticing how Backbone seems to be the latest trend for WordPress theme development. A few data points: Backbone.js and WordPress development resources Theme Foundry's Collections theme. ...
5
votes
1answer
216 views

print_media_templates not applied in media manager plugin

I'm trying to build a media library where users can choose pictures that are being retrieved from custom folders, which they can specify the basefolder of. I am getting the correct images back, but ...
2
votes
1answer
225 views

Is there a hook to process a backbone restful PUT request inside wordpress?

I play around with Backbone.js (Great !) and want to synchronize my model data with the wordpress ajax api (3.6.1) on the server-side. Adapted to this ...
10
votes
1answer
1k views

Add filter function in media modal box

I'm trying to extend the media modal, but I cant' find any documentation / tutorials about it. I'm not a master of backbone too ;-) I want to add a select box for each taxonomy that is attached to ...
24
votes
1answer
876 views

Pre populate WordPress wp_media modal with image selection

I'm the developer of the Advanced Custom Fields plugin and am hoping you can help me out with an issue I am facing. I have a button where you can edit an image. This button will launch a WP 3.5 media ...
5
votes
1answer
2k views

Display attachments by ID in a wp.media frame

I'm trying to use the new wp.media uploader frame for an app I'm building. I've read up a lot on other questions, blog posts, etc etc. The code I pasted below is working already quite fine and even ...
3
votes
1answer
629 views

Using Underscore Templates in WordPress

I've noticed that since WP 3.5 that we now have the Backbone.js and Underscore.js libraries included. The new Media Modal uses Underscore templates and I was wondering how would I be able to insert ...