Jump to content

Easy way to get all $pages->meta() data?


bernhard
 Share

Recommended Posts

Just a quick question to make sure I'm not missing something obvious.

If I had some page meta data, like $page->meta('foo', 'my foo value') and $page->meta('bar', 'my bar value') I'd expected that $page->meta() without any arguments gave me an array like this:

[
  'foo' => 'my foo value',
  'bar' => 'my bar value',
]

But it returns an emtpy WireData WireDataDB object. Is there an easy way to get the data that I want or do I need to build my own SQL query?

Thx!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...