Jump to content


Photo
* * * * * 1 votes
Resolved

Views (And Types Custom Types / Fields) Compatibility?

Views types custom types custom fields View template

  • Please log in to reply
6 replies to this topic

#1 adampfoster

adampfoster

    Newbie

  • Members
  • 4 posts
  • Framework Version:2.3.5
  • Country: Country Flag

Posted 07 November 2012 - 09:51 AM

Hi,

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 -

Please Login or Register to see this Hidden Content



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.

Cheers
Adam

#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 13234 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 07 November 2012 - 10:18 AM

Hi Adam,

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.

#3 adampfoster

adampfoster

    Newbie

  • Members
  • 4 posts
  • Framework Version:2.3.5
  • Country: Country Flag

Posted 07 November 2012 - 01:12 PM

Hi Danny,

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?

Cheers
Adam
  • ellenmva likes this

#4 ellenmva

ellenmva

    Advocate

  • Members

  • 256 posts
  • LocationMassachusetts
  • Country: Country Flag

Posted 07 November 2012 - 01:15 PM

Hi Adam,

Views works with Pagelines. Go to Views -> Settings and under Theme Support for View Templates put post_content.



Please Login or Register to see this Hidden Content



Ellen.
  • Clifford P and basmati like this

#5 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 07 November 2012 - 04:56 PM

@adam I'm not sure why PL changed the function, but you should try Ellen's solution above and let us know how it works for you.

#6 adampfoster

adampfoster

    Newbie

  • Members
  • 4 posts
  • Framework Version:2.3.5
  • Country: Country Flag

Posted 07 November 2012 - 11:22 PM

Hi,

Ellen and Catrina, that solution worked great!

Thanks for your help with this!

Issue resolved.

Cheers
Adam

#7 James B

James B

    Advocate

  • Moderators
  • 4985 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 08 November 2012 - 02:16 AM

The topic was marked as resolved.





Also tagged with one or more of these keywords: Resolved, Views, types, custom types, custom fields, View template