Hi Amir, hi folks,
great plugin so far, thanks! I am trying to build a view based on the following construct:
- custom type: widget
- custom type has custom field (not your plugin but via ACF): "similar widgets" (a "Relation" object)
So I already tried building a view template for displaying single "similar widgets", but I am not able to access them from the main view. The main view is outputting the "array" of similarWidgetIDs ("2,6,27").
1) Is there any simple way to have the way loop through this array and display the "similar widgets" for each widget?
2) Alternatively, any plans to implement the "Relation" equivalent in your own "Types" plugin, so it can be integrated easier with views? I think it's a very frequent use case across all verticals (real-estate, blogs, review sites whatever....)
Thanks much
Nick
1) There is no simple way to do this. If you know PHP you can add a filter for when views displays a field with the wpv-post-field shortcode.
Views calls the filter
$out = apply_filters('wpv-post-field-' . $name, $out, $meta);
2) We're adding relationships to Views/Types. It's still a few weeks before we will have it ready. You can read about the discussion here - https://toolset.com/2011/12/repeater-fields-for-types-and-views/
Thanks, Bruce. I may just resort to adding the view manually in PHP until it's part of Types+Views. Looks like you guys already have a good solution in the works there.