• Resolved BlankFile

    (@blankfile)


    Hello forumers !!
    Well, the main problem is that I use custom post types to manage 2 kinds of info: “Jornada” and “Resultat”.

    This info appears in sidebar without be managed with custom post types, and now we need to do it with CPT.

    So, in the code, we use categories to show info as this:
    <?php
    $myposts = get_posts(‘cat=8&showposts=2‘);
    if ($myposts) {
    $uc=array();
    foreach ($myposts as $mypost) {
    $uc[]=$mypost->ID;
    }
    }
    And what I need to put is the custom post type, not the category (cat=8) as is shown there.
    I looked in reference and codex, but I dunno well how to manage it …

    Thanks for help ??

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Trouble with CustomPostTypes’ is closed to new replies.