Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End How to call custom post type categories?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #264769
    Sinan Karabulut
    Participant

    Hello,

    I have a custom post type called portfolio.
    In my home page there is a shortcode from my theme which calls recent portfolio items.
    But instead of calling recently added portfolio, i need to call specific portfolio categories with thumbnails (not posts just category previews) and show them.
    You can check my site from http://www.ekn.sinankarabulut.com and you will see this recent works column with product thumbnails which i need to change to list of portfolio categoris with thumbnails. I’ ve already installed a plugin for category thumnails.

    How can i make this happen ? I am not pro so can you please describe easily ?

    Following code is from my post_types.php;

    <?php
    add_action( 'init', 'create_post_types' );
    function create_post_types() {
        global $smof_data;
        // Portfolio post type
        register_post_type( 'us_portfolio',
            array(
                'labels' => array(
                    'name' => __('Portfolio', 'Vittoria'),
                    'singular_name' => __('Portfolio Item', 'Vittoria'),
                    'add_new' => __('Add Portfolio Item', 'Vittoria'),
                ),
                'public' => true,
                'has_archive' => true,
                'rewrite' => array('slug' => $smof_data['portfolio_slug']),
                'supports' => array('title', 'editor', 'thumbnail'),
                'can_export' => true,
            )
        );
    
    

    Thanks a lot

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.