Jump to content


Photo
- - - - -

Get the page ID in custom Section


  • Please log in to reply
2 replies to this topic

#1 ordinaryboy

ordinaryboy

    Newbie

  • Members
  • 1 posts

Posted 02 May 2012 - 06:58 AM

Hi,
I'm new to pagelines but have been working with wordpress for quite a while.
I am trying to create a custom section to display a bulleted list of child pages of the current page:

Please Login or Register to see this Hidden Content


The post ID of the current post doesn't seem to work... I'm probably going about it all wrong! Could a pagelines whiz please offer advice?

#2 Danny

Danny

    Is Awesome!

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

Posted 02 May 2012 - 09:42 AM

Hi,

Is the code above taken from

Please Login or Register to see this Hidden Content

?

#3 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 02 May 2012 - 12:32 PM

You need to call the global first before you try and access the object.:

Please Login or Register to see this Hidden Content