• Ok,

    I have been running my wordpress website for a little while now and I want to extend my site beyond the blog it is now and add a portfolio to it, a place where I can put pictures I take/make, games I make, stories I write etc… I have already made a page for it but I don’t really know how to set it up, I don’t want it to just be a bunch of posts.

    I would like to be able to open the portfolio, choose the gallery/category, and then view it’s contents. I like the default way of posting pictures and files, so I am happy for that to stay the same, I just need some help in setting up the layout of it. The website is as you can see, the portfolio page is ready to go, but if someone can help with the layout of it that’d be great.

    Thanx ~ Matty

Viewing 1 replies (of 1 total)
  • Purab

    (@wordpressapi)

    Use the following code in your functions.php file.

    <?php
        add_action('init', 'create_portfolio');
        function create_portfolio() {
            $portfolio_args = array(
                'label' => __('Portfolio'),
                'singular_label' => __('Portfolio'),
                'public' => true,
                'show_ui' => true,
                'capability_type' => 'post',
                'hierarchical' => false,
                'rewrite' => true,
                'supports' => array('title', 'editor', 'thumbnail')
            );
            register_post_type('portfolio',$portfolio_args);
        }
    ?>

    This will give you option to create your portfolio. Check your admin section -> left side menu-> portfolio section

Viewing 1 replies (of 1 total)
  • The topic ‘Adding a Portfolio Page’ is closed to new replies.