Support » Plugin: Easy Photo Album » Please add category or tag support

Viewing 1 replies (of 1 total)
  • I did it myself.
    In file “EPA_PostType.php” in plugin directory, before string calling the function register_post_type ( … ), look the line 131, adding the next code:

    * Registers the new taxonomy <code>shelf</code> for <code>easy-photo-album</code> post type.
    		'hierarchical' => true,
    		'labels' => array(
    			'name' => _x ('Shelves','Photo Albums shelves name (multiple)','epa'),
    			'singular_name' => _x ('Shelf','Singular Photo Albums shelf name','epa'),
    			'search_items' =>  _x ('Search shelf','Search items','epa'),
    			'popular_items' => _x ('Popular shelves','Popular shelves','epa'),
    			'all_items' => _x ('All shelves','All items','epa'),
    			'parent_item' => _x ('Parent shelf','Parent shelf','epa'),
    			'parent_item_colon' =>  _x ('Parent shelf','Parent shelf','epa'),
    			'edit_item' =>  _x ('Edit shelf','Edit menu item','epa'),
    			'update_item' =>  _x ('Update shelf','Update menu item','epa'),
    			'add_new_item' =>  _x ('Add new shelf','Add new menu item','epa'),
    			'new_item_name' => _x ('New shelf name','New shelf name','epa'),
    			'add_or_remove_items' => _x ('Add or remove shelf','Add or remove shelf','epa'),
    			'choose_from_most_used' => _x ('Choose from most used','Choose from most used','epa'),
    			'menu_name' => _x ('Shelves','Menu name','epa')
    		'public' => true,
    		'show_in_nav_menus' => true,
    		'show_ui' => true,
    		'show_tagcloud' => false,
    		'update_count_callback' => '_update_post_term_count',
    		'query_var' => true,
    		'rewrite' => array(
    			'slug' => 'shelf',
    			'hierarchical' => true

    then in function register_post_type arguments find a last string
    'taxonomies' => array ()
    and change it to
    'taxonomies' => array ( 'shelf' )
    after that you will need to flush your permalink structure after making changes to your taxonomies, permalink structure is automatically flushed when you visit Settings > Permalinks in your WordPress dashboard.
    That’s all… now I can arrange photo albums on the shelves.

Viewing 1 replies (of 1 total)
  • The topic ‘Please add category or tag support’ is closed to new replies.