• Hey there, I want to make my theme have a custom post type that display images on the home page similar to the way google images handles their images.

    Here is a crude illustration of how I would want it to look:

    https://i51.tinypic.com/2dtzn2u.jpg

    I want to be able to add posts and have only the images with a title show up on the page.

    I also want to have links at the bottom to give users the option to click NEXT, and previous, or choose a page number.

    Can anyone help me out with this? Or perhaps show me a link to a tutorial?

    Thanks a lot

    -S

Viewing 1 replies (of 1 total)
  • Thread Starter Simone

    (@simonttz)

    This is what I have so far in my functions.php file:

    <?php
    	add_action('init', 'create_portfolio');
    	function create_portfolio() {
        	$portfolio_args = array(
            	'label' => __('Women'),
            	'singular_label' => __('Woman'),
    		'add_new_item' => __( 'Add New Woman' ),
            	'public' => true,
            	'show_ui' => true,
            	'capability_type' => 'post',
            	'hierarchical' => false,
            	'rewrite' => true,
            	'supports' => array('title', 'editor', 'thumbnail')
            );
        	register_post_type('portfolio',$portfolio_args);
    		add_theme_support('post-thumbnails');
    		register_taxonomy("Category", array("portfolio"), array("hierarchical" => true, "label" => "Categories", "singular_label" => "Category", "rewrite" => true));
    	}
    ?>

    How can I display them on the home page in a manner to that depicted in this illustration: https://i51.tinypic.com/2dtzn2u.jpg

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Post Type: Image gallery array on INDEX page’ is closed to new replies.