Advertisement
Guest User

Untitled

a guest
Dec 8th, 2012
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.74 KB | None | 0 0
  1. <?php
  2.  
  3.     do_action('icl_language_selector');
  4.  
  5.  
  6.     echo "Language selected::: " . ICL_LANGUAGE_CODE . "<br><br><br>";
  7.  
  8.    
  9.     query_posts( array( 'post_type' => 'propostas','posts_per_page' => -1 ) );
  10.         if (have_posts()) :
  11.             while (have_posts()) : the_post();
  12.                 echo get_the_title();
  13.                 endwhile;
  14.             endif;
  15.  
  16.     //THIS CODE BELLOW WORKS IN WPML
  17.    
  18.    
  19.    
  20.     //NOW USING PODS
  21.     $pods =  pods( 'propostas' );  
  22.     $params = array(
  23.         'orderby' => 'name ASC',    
  24.         'limit' => 15
  25.     );
  26.     $pods->find($params);
  27.     while ($pods->fetch()) {
  28.         echo $pods->display('name') . "<br>";
  29.     }
  30.    
  31.     //END PODS
  32.    
  33.     //NOT WORKING --> LIST ALL POSTYPES propostas....
  34.    
  35. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement