Add Support for Custom Post Types

Last updated on Tuesday, July 5th, 2011

These instructions are intended for those who are proficient in creating & installing custom plugins. The relevant tutorials for creating & installing plugins can be found on wordpress.org. If this is beyond you, we do offer a competitively-priced plugin creation & installation service starting at £50 per plugin. Please contact us for further details.

When setting up your custom post types, you need to add a filter to register the new post types for eShop.

$array=apply_filters('eshop_post_types',$array);

By default, the array is just post and page, so use add_filter to either amend or add your custom post type.

WordPress Theme Development

Top