• Resolved beppe7802

    (@beppe7802)


    I need to display current post category in a metro layout.

    $categories = get_categories( array(
    ‘orderby’ => ‘name’,
    ‘parent’ => 0
    ) );

    foreach ( $categories as $category ) {
    printf( ‘%2$s<br />’,
    esc_url( get_permalink($upl_all_post[$i]->ID) ),
    esc_html( $category->name )
    );
    }

    display a list of blog categories. I need to display only the current post category.

    Thanks so muck.

    • This topic was modified 3 years, 11 months ago by beppe7802.

    The page I need help with: [log in to see the link]

  • The topic ‘How to display category post on metro’ is closed to new replies.