alternative for call pods('podname');
lets assume I have the following code
$pods = pods( 'bars', $params );
while ( $pods->fetch() ) {
echo $pods->get_field('best');
$rel_bar_image = $pods->get_field('image');
}
I want to be able to run my own query but have the same access to the
object, so
$pods = pods( 'MY QUERY' );
while ( $pods->fetch() ) {
echo $pods->get_field('best');
$rel_bar_image = $pods->get_field('image');
}
Is it possible to do?
No comments:
Post a Comment