WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. romanboix
    Member
    Posted 1 year 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!

    http://wordpress.org/extend/plugins/custom-content-type-manager/

  2. romanboix
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    Glad you solved the problem!

Topic Closed

This topic has been closed to new replies.

About this Topic