Need Archive for Custom Post Types
-
[ Moved to the Fixing WordPress sub-forum. ]
I have a site that I’m cleaning up, it had a lot of issues with the custom theme it was using as well as custom post types and custom fields.
There are 6 pages that represent 6 regions of a geographical area. These pages all use a custom theme for their layout. Instead of the meta widget in the admin section for a page that you can use to assign a template to that specific page, there is a group of checkboxes where I can check if it’s region 1, region 2, etc, to region 6.
On these region pages, the main section of their template, is a blog feed of a custom post type called “article” that shows the 5 most recent articles assigned to this region. The original theme dev removed the “post” feature from the site and instead all new content is added through these articles which function like posts, and also use the WP-core categories with them.
Here is where I’m getting confused, the regions, 1-6, are not a category, instead articles are given a category, and then using a dropdown selection, are assigned to either “no regions”, “all regions”, or “regions 1/2/3/4/5/6”. It is through this dropdown selector that articles are assigned to a region.
I need to create an archive for these regions so that a site user can see other articles rather than the 5 most recent assigned to a region. Additionally, the homepage is not associated with any single region, instead each article has a checkbox to assign an article to the homepage, in addition to the dropdown assigning articles to a region. So in theory, each article can have multiple categories from the WP-core category feature, it can be assigned to a single region, to no regions, or to all regions, and it can have the checkbox checked to add that article to the homepage blog feed.
I need to add either pagination to the homepage and the region pages to allow browsing through older articles, or I need to add an archive page for the homepage and the region pages.
Any suggestions? I know I could create new categories for the regions, and assign each article to their appropriate region(s), but I’d have to do that for hundreds of articles and the admin staff would still then have to assign an article to a region using the dropdown as well as assigning it to the regions category. But there must be a cleaner way to do this?
- The topic ‘Need Archive for Custom Post Types’ is closed to new replies.