This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 10th, 2013  |  syntax: PHP  |  size: 0.28 KB  |  views: 188  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. // Get the latest variable from Pods URL
  4. $id = pods_url_variable('last');
  5.  
  6. // Define the params to find the Pods Item based on the $id
  7. $params = array( 'where' => 'permalink = "'.$id.'"' );
  8.  
  9. // Display it by using Pods Template
  10. echo pods( 'albums' )->find( $params );
  11.  
  12. ?>
clone this paste RAW Paste Data