hey,
i have a "youtube video id" custom field.
the intention is to insert an iframe with the video id to a certain post. no problem.
now, i know content templates can achieve that. but the thing is i don't want all posts to show a video, only some. so i thought i'd create a view which will display only this one custom field, and that it would show only the field related to the current post, when inserted into a post body. but instead it gives me ALL the "youtube video id"s from all the post which have any.
this is strange, becasue in the loop wizard. when editing the custom post type, under "post selection" it says "The current post being displayed either directly or in a View loop".
i tried to add a filter, but only taxonomies can have the "set by the current post in the loop", custom field don't.
and since i don't have a special url parameter (as this isn't a search), i can't filter through that either.
am i missing something?
thanks!
ido
ok, i'm stupid 🙂
i just had to insert the field in the html and not create a view.