[Plugin: Posts 2 Posts] Default value for 'fields'
-
I’m building a personal movie database – this plugin is working awesomely for me and I’m having a lot of fun playing around with it.
Here’s my question:
I’ve set it up so that I can assign a “strength of performance” indicator to a particular actor in a particular movie (using ‘fields’ where I’ve defined the movies-to-actors relationship in functions.php). I want to be able to see that Michael Caine was really good in Batman Begins, but not so great in Jaws 4, or whatever.
I initially set it up to have two values: “great”, and “same-old”. However, in a movie like “Harry Potter” where there are a gazillion actors, it gets tedious setting most of them to “same-old”. Is there a way to make a custom field default to a certain value unless I specify otherwise?I’m not super-strong on PHP, and I’ve played around a little trying to get it to work, but with no luck.
Any ideas?
Thanks!
- The topic ‘[Plugin: Posts 2 Posts] Default value for 'fields'’ is closed to new replies.