[resolved] [Plugin: Custom Content Type Manager] using templates (3 posts)

  1. romanboix
    Posted 3 years ago #

    Hi! i have created a custom type that lists other type. for example, is like i have a movie_collection that lists movies.
    if I go post_type -> preview or go to sample template, it lists correctly but, when I try use it like WP template in a page, the function get_custom_field returns nothing.
    Sorry for my bad English and thanks!


  2. romanboix
    Posted 3 years ago #

    okey i found the problem... it was the ID.. i solved by this way:

    $Q = new GetPostsQuery();
         $args = array();
         $args['post_type'] = 'programa';
         $args['orderby'] = 'name_last';
         $args['order'] = 'ASC';
         $args['post_status'] = 'publish';
         $all_programas = $Q->get_posts($args);
  3. fireproofsocks
    Posted 3 years ago #

    Glad you solved the problem!

Topic Closed

This topic has been closed to new replies.

About this Topic