Well after thinking about this some more, I’ve realised that it was a bit of a dumb question to ask… My problem is actually being able to pre-define categories in themes for new subsites of my mulitiste.
I’ve got around this by using a premium plugin which allows me to offer blog templates / themes with a few predefined categories and some dummy content. This means that I already know the category id’s when a new subsite is created.
Now new users can choose any of my themes, and most of them will have an e-shop option which will have the dropdown “product” category pre-installed etc.
Good grief, the lengths I’m going to to try and simplify the whole wp cms 🙂
If anyone’s interested I’ll post a link to the full project here sometime soon (I hope).
Related Posts:
- Is There a Difference Between Taxonomies and Categories?
- WooCommerce: List All Categories
- Get rid of WordPress category, tag and author archives?
- Filtering categories in the permalink structure
- get_categories hierarchical order like wp_list_categories – with name, slug & link to edit cat
- Wrap Post count in a span
- wp_nav_menu not appearing for a couple pages
- Why aren’t sub-categories nested after creating post in the WP Admin?
- Preventing index.php?category_name=something from redirecting
- How to get category id of current post?
- Programmatically create product category and add thumbnail in woocommerce
- Trash bin for categories
- Categories’ hierarchy in URL
- Display one category in one page
- How to get next previous category in same taxonomy?
- Show children of top level category only
- is_archive() content being shown instead of is_category()
- Check is category parent or not from its ID
- Which php file lists all the post of a category
- How to query posts from specific authors and categories using WP_query?
- Apply custom category template to subcategories
- Add custom taxonomy under the category title
- Retrieve all posts within tag OR category?
- Include template before a loop
- How to customize tag and category post listings to show introductory content?
- List Terms in Category
- Can you have a single set of “canonical” categories shared by all blogs?
- List Posts by Category for a Non-Zero, Non-NULL Custom Field Value?
- Include posts from feature category in pre_get_posts
- Rename Default Category (Uncategorized) Via a Function
- Specified number of categoy posts not showing correctly
- Display Slug instead of Name
- How to customize category template?
- Customized landingpages for categories
- get_the_category_list open in parent window
- Show category images on single product page and product overview page
- Class active for Archive link – looped out
- Filtering multiple categories via the URL
- Get parrent category name
- Display specific categories by ID
- Remove sub-menu item from admin menu
- Multiple categories with common subcategories
- Counter in loop in foreach
- How to add WordPress sub category without select
- How to limit number of attachments
- Show category name and new articles and display page numbers. What function to use
- Add child category to parent on post creation and save
- wp_list_categories in in nav_menu
- Sub category templates
- How to use an array of categories as a dropdown?
- ACF add custom fields to categories and display
- Custom taxonomy template for categories
- Show category with link
- How to create a custom categories page
- Select posts from Category
- Get post related on category
- Give Children Unique ID’s
- Searching for a category returns nothing if category is empty
- Need to echo category id in multi-dimensional array
- How to get nav to show current_page_parent class when on regular post (not blog), differentiated by category
- How to exclude posts from category posts count
- Use blog as base for tags and categories
- I would like to feature a tip on the homepage
- Redirect depending on category chosen
- Can’t iterate through 2 levels of categories
- Problem: retrieving parent category’s first post
- Category URL Management
- How do I export the headlines of all the blog posts in a single category?
- how can we bring category metabox to Media Library/Upload New Media Page
- How can I display a list of categories of my posts
- Category post count is not correct
- 404 on category URL
- Problem creating wp categories
- List of post categories only associated to another custom taxonomy
- Add Post Categories in Post Tags Field Programmatically
- List all categories and count number of posts within based on custom date
- Category URL’s 404 after setting category base to ‘.’
- How to allow each editors to only edit certain categories?
- Bulk assign posts to a category using SQL (MySQL)
- sort post category listing
- Query post if has two of the categories
- Display Category description
- Display all posts from specific category
- How to apply wordpress ‘with_front’ = false for categories?
- Custom Category Archive Pages
- A search box for all sites – Multisite
- How to grab posts from the most recently created category
- Match two taxonomies to display a specific content
- How to get multiple loop in category.php, my scripts becomes madness
- Modify / Rewrite single template url structure
- Getting categories to change appropriately when using $cat = ‘ ‘;
- how to call the category of the post
- Category related -> excerpt, title and thumb in sidebar on article page
- How to have a category not show up in query post with page panigation?
- why is the delete option missing from just one category?
- Echo Category In Loop
- Get all categories
- Show category post order ASC
- How to display all category images for single post in a page?
- how do I exclude a category foreach