Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
if (isset($taxonomy['listing_records'])) {
$amount = $taxonomy['listing_records'];
} else {
$amount = $app['config']->get('general/listing_records');
}
if (isset($taxonomy['listing_sort'])) {
$amount = $taxonomy['listing_sort'];
} else {
$order = $app['config']->get('general/listing_sort');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment