Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- abstract class Shopping_Wizard_Stash {
- public $query_data;
- function __construct() {
- $loop = new WP_Query(
- array(
- 'post_type' => 'shopping_wizard',
- 'orderby' => 'title',
- )
- );
- var_dump($loop);
- if($loop->have_posts()){
- $output = (object) array();
- while($loop->have_posts()){
- $loop->the_post();
- $meta = get_post_meta(get_the_ID(), '');
- $output->append($meta);
- }
- $this->query_data = $output;
- } else {
- $this->query_data = false;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment