• Resolved raygo

    (@raygo)


    Hi created a custom post called “slides” and created 2 custom fields “slide” and “phrase”.

    When I do :

    $args=array(
                'post_type' => 'slides',
                'posts_per_page' => 5
        );
    
    $my_query = query_posts($args);
    
    print_r($my_query);

    I get the posts but I don’t get any of the custom fields. Is there something I’m doing wrong? Thanks

    https://www.ads-software.com/plugins/types/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show custom fields with query_posts’ is closed to new replies.