• Hello forumers ! I have a trouble that don’t let me sleep.

    Look:

    <?php
    $myposts = get_posts(‘cat=8&showposts=2‘);
    if ($myposts) {
    $uc=array();
    foreach ($myposts as $mypost) {
    $uc[]=$mypost->ID;
    }

    This code displays the categories in the webpage, the 2 last categories. But I’m not using categories anymore and I need to put the custom post types. I made custom post types for a better control, and what I need is to call the custom post type, not the category.
    And I dunno how should I do…

    Any ideas??

    Thanks !!!!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘post_get and custom post types’ is closed to new replies.