Forums

Give help. Get help.

  • # January 2, 2018 at 4:02 am

    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)

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag