Hi, I have a Custom Field Group (Contact Details) which contains fields as folows:
I created a Custom Post Type called Directory to accommodate for the description etc. Now, I thought I could have the Custom Post Type for Contact Details in the sidebar dynamically generated with the correct contact details depending on the post. To do that I created a View called Contact Advertiser and set it as Normal Post loading from Directory. I then filtered post with taxonomy 'business listing' value set by current page.
Finally I tried the following.
In a text widget I added the shortcode: [wpv-view name="contact-page"]
In the WPViews widget I selected the Contact view.
In both cases the contact details shown on the front end is always the same one. In other words, the contact details do not change relative to the post.
I know I am missing something somewhere. I just cannot seem to find what it is.
The above gave me the result I wanted. In other words, my custom fields from my post are now dynamically generated in my sidebar in relation to that post only. Note that actually adding a View does not work. You need to actually add the Custom Field Types in the widget.