Views (And Types Custom Types / Fields) Compatibility?Views types custom types custom fields View template
Posted 07 November 2012 - 09:51 AM
I've noticed that custom field data from custom posts isn't showing up when I create template to display the custom field data via the Views plugin which also works with the free Types plugin.
The tutorial that I'm following is here -
I realise that Views is a premium plugin, however I'm happy to setup a test environment with Pagelines installed, for someone to jump into, and try to diagnose what's going wrong.
I switched themes to the stock wordpress theme and the custom field data shows up fine and represented correctly as defined in the view template, so it's evident that something is different with PageLines that results in the custom field data not appearing.
I would appreciate any help with this.
Posted 07 November 2012 - 10:18 AM
As you know PageLines isn't like a standard Wordpress theme. Therefore, I recommend you contact the plugin author first and see what they recommend, as they may be able to provide you with some code that will allow this to work.
Posted 07 November 2012 - 01:12 PM
Yes it seems to be different. I figured out that the_content function in Pagelines is actually post_content, and Views lets you very easily replace the function in case it changes, which is great on their part.
Thanks for your quick response anyhow.
Curiously why does Pagelines change the function?
Posted 07 November 2012 - 01:15 PM
Views works with Pagelines. Go to Views -> Settings and under Theme Support for View Templates put post_content.
Posted 07 November 2012 - 04:56 PM
Posted 07 November 2012 - 11:22 PM
Ellen and Catrina, that solution worked great!
Thanks for your help with this!