Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- do_action('icl_language_selector');
- echo "Language selected::: " . ICL_LANGUAGE_CODE . "<br><br><br>";
- query_posts( array( 'post_type' => 'propostas','posts_per_page' => -1 ) );
- if (have_posts()) :
- while (have_posts()) : the_post();
- echo get_the_title();
- endwhile;
- endif;
- //THIS CODE BELLOW WORKS IN WPML
- //NOW USING PODS
- $pods = pods( 'propostas' );
- $params = array(
- 'orderby' => 'name ASC',
- 'limit' => 15
- );
- $pods->find($params);
- while ($pods->fetch()) {
- echo $pods->display('name') . "<br>";
- }
- //END PODS
- //NOT WORKING --> LIST ALL POSTYPES propostas....
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement