Jump to content

Selector breaks on pagination pages


ZionBludd
 Share

Recommended Posts

Hi All, my selector appears to break when on pagination pages...
 
E.g. page/page2
 
Any ideas as to why it would break?
 
Here is my code:
<div class="well" style="background-color:#fff">
<div style="border-bottom:1px solid #ededed; padding-bottom:5pt">
<strong><i class="fa fa-star"></i> Top Rated Gyms</strong> </div>
<div style="padding-top:5pt">

<?
$pa = $pages->find("rating=3|4|5, template=listing-gym, sort=random, limit=10");

foreach ($pa as $p) {
  echo "<a style='display:block' class='underline' href='$p->path'>$p->title</a>";
} 
?>
</div>
</div>
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...