Jump to content

How to get repeater from another page


Edward Ver
 Share

Recommended Posts

Hi All,

I'm still learning PW, and loving it. But, I'm no PHP coder. 

My Problem is how to output fields from another page inside a repeater.

<?php $showcase = $pages->find("template=work_details") ?>
<?php foreach($showcase as $showcases): ?>
  <div>
    <p class="pb-2 text-left"><?= $showcases->work_hero_subheading ?></p> // This is inside a repeater called "work_hero_repeater"
    </div>
<?php endforeach; ?>

But there is no output.

 

Thank you for any help.

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...