Support » Themes and Templates » Custom Post Type: Image gallery array on INDEX page

  • Simone


    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:

    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


Viewing 1 replies (of 1 total)
  • Simone


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

    	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_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:

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