Jump to content


Photo
- - - - -

Show Custom fields pagelines 2.0


This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1 cstudio

cstudio

    Member

  • Members
  • 16 posts

Posted 02 January 2012 - 11:19 PM

I am new to pagelines and a novice at php. I don't know where to place the code to show the meta from custom fields. I am using 2.0.1. I found information for older verison but not 2.0 it seems different.

#2 kastelic

kastelic

    Advocate

  • Members

  • 3081 posts

Posted 02 January 2012 - 11:30 PM

Any code like this you have to insert with a hook. Here is an example which uses the hook "pagelines_after_postloop" and uses the basic "the_meta()" function which displays all the meta keys and values for a given post in an unordered list.

You have to activate the Pagelines Customize plugin (free in the store) and then paste this in plugins/pagelines-customize/functions.php

Please Login or Register to see this Hidden Content


List of hooks:

Please Login or Register to see this Hidden Content


Ways to display meta info:

Please Login or Register to see this Hidden Content



#3 minute14

minute14

    Newbie

  • Members
  • 9 posts

Posted 31 July 2012 - 11:08 PM

If i could pose an additional question... Comment: This works perfect on Platform Pro! Question: I have a checkbox form that allows people to select multiple answers and have only one challenge. Only one selection appears in my custom field instead of the multiple ones they chose. Is there a modification to the above code to allow multiple results entered in the custom field instead of the first one? thanks again!