Hi, i have some problem with my script to get tmdb movie keywords.
This is my scripts that i use
if(key == "keywords"){
var keyw = "";
$.each( tmdbdata.keywords, function( i, item ) {
keyw += "" + item.name + ", ";
});
$('input[name="keywords"]').val( keyw );
}
The result is: undefined, . whats wrong?
I use same metod to get backdrops with this code
if(key == "images"){
var imgt = "";
$.each( tmdbdata.images.backdrops, function( i, item ) {
imgt += "https://image.tmdb.org/t/p/w300" + item.file_path + "\n";
});
$('textarea[name="imagenes"]').val( imgt );
}
it's work properly
anyone can help?
Nevari atrast filmu vai TV pārraidi? Jāpiesakās, lai to izveidotu.
Vēlies novērtēt šo vienumu vai pievienot to sarakstam?
Neesi dalībnieks?
Atbilde no Travis Bell
on februāris 19, 2016 at 6:23 PM
Hi WongKentir,
I think I can assume you're using
append_to_response
so if that's case, you're probably looking for:I think. If not, then I'll need to see an example request (full URL) you're making.
Atbilde no Wong
on februāris 20, 2016 at 3:37 AM
Wow, this great. thanks travis, Love your tips. it's work.
Short, sharp and to the point.
I’m no PHP/Script expert but you guys make learning so much easier. :)
Are you familiar with wordpress?
In other case, I do the same result with another code.
It works pretty good, but i don't want custom tax "country". i want default tax of tags, to auto fill up the taxonomy.
i already tried with: tag, tags, post-tags, but not work. Have any idea to solve this case?
Atbilde no Wong
on februāris 21, 2016 at 11:57 PM
SOLVED, thanks :)