The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
3answers
3k views

current-menu-item not added on page showing custom post type (rendered with archive template)

I have setup a custom post type called 'expertizeom' I have setup a page called "expertize" and added to my custom menu (site main nav). The page is rendered with an archive called ...
0
votes
1answer
555 views

Custom Post Type Date Based Archive URL rewrite [duplicate]

Possible Duplicate: custom post types, wp_get_archives and add_rewrite_rule I have a custom post type called "course" and I would like to create a date based archive similar to the default ...
0
votes
1answer
180 views

Need equivalent of single_term_slug

I am building a taxonomy archive page and I am trying to create a linked instance of the current term outside the loop. So, let's say my taxonomy and current term are: Taxonomy: Animals Term: ...
0
votes
1answer
277 views

Custom Post Type Query issue

I have a conflict issue with 2 custom post types. I have a template file archive-media.php and have created the related 'media' custom post type. This all works well, however in the sidebar I have a ...
0
votes
2answers
2k views

next_posts_link and previous_posts_link problem

Below is the code from my author.php file. The problem is that next_posts_link and previous_posts_link only generate links based on the number of posts in the blog authored by the author in question, ...
1
vote
2answers
251 views

Second Custom Post Type Archive

I've got an event custom post type, and using filters, I've configured the archive page to show only event in the future, and in chronological order based on a meta value (start date). I want to make ...
5
votes
2answers
2k views

How to set a custom post type to have viewable future posts

I've setup a CPT to act the same ways as posts but used to post event details. Thing is that some of the posts are in the future and such have a future date set on them. Problem is that normal users ...
1
vote
1answer
300 views

Custom archives function

I'm working on building a custom archives page for my church's website. On my archives page I want to have last week's sermon shown at the top in a special box, followed by the future sermons and then ...
0
votes
2answers
448 views

Dynamic menu with custom post types

I'd like to create a dynamic menu with a mix of static pages and custom post type archives that applies a class of "current" to the current tab. The example below uses 1) Static page set as Home 2) ...
2
votes
2answers
1k views

Archives for custom post type based on a “date” meta value

I've got an "Event" custom post type. Each post has a meta field for the actual event date, which cannot be the posts's publish date, as most all the event dates will be in the future. With that, I'm ...
1
vote
2answers
2k views

Custom Post Type with has_archive ignores my custom archive and single template

I'm trying to set up a new CPT called news (see code here: http://pastie.org/3148081) and I'm specifying the has_archive parameter. I've set up a new template called archive-news.php and ...
0
votes
1answer
977 views

Alphabetically sort a taxonomy.php template by post title

Simply put, is it possible to sort a taxonomy.php template via the same methods you can with something like wp_query so that the archive shows all posts in an ascending order alphabetically by title? ...
0
votes
2answers
2k views

Custom post type archive category page results in 404

I've created a custom post type: register_post_type('campaign', array( 'labels' => array( 'name' => __("Campaigns"), 'singular_name' => __("Campaign"), ), ...
1
vote
2answers
2k views

List all posts in Custom Post Type but group dynamically by Custom Taxonomies

I have a custom post type named "Resources" which has a Taxonomy named "Types." I have it manually pulling each term which isn't the most elegant solution and every time there is a new term added, I ...
0
votes
1answer
112 views

Specifying a template for custom post type pages

My main projects page is bringing in some data that I have entered in for custom post types. There are basically a few categories like "photo", "video", etc. When you click on one of these it will go ...
0
votes
1answer
1k views

Page is defaulting to archive page and not designated template

I created a page called "Projects" through the wordpress admin I created a template called "Projects" Set the "Projects" page to use the Projects template. How come when I navigate to the Projects ...
2
votes
1answer
828 views

Display Next/Prev when looping Custom post-types archive?

I'm trying to display the Next/Prev navigation buttons on my page which displays all of the pages within my 'events' custom post-type. The issue is that the buttons are not even displaying, but I have ...
0
votes
1answer
314 views

has_archive for default post type

So I have several CPTs set up but I want to have all my default posts listed under /blog. I was hoping I could somehow enable has_archive for the default post type but I have yet to succeed. Any ...
4
votes
1answer
1k views

Custom Post Type Archives by Date with Custom Permalink

I'm a bit stuck with getting the custom permalink for custom post type (CPT) archive to work. I've registered my 'press_release' CPT as following: add_action('init', 'press_release_post_type_init'); ...
0
votes
1answer
371 views

custom post type not getting archived?

I'm used the plugin More Types to create a custom post type (News). I'm also using the plugin Smart Archives Reloaded to have an archive of my custom post type. The problem is when i click on a month ...
5
votes
3answers
2k views

How to use a custom post type archive as front page?

I'd like to use a custom post type archive as a site's front page, so that http://the_site.com/ is a custom post type archive displayed according to my archive-{post-type}.php file. Ideally I ...
4
votes
1answer
1k views

How to filter custom post type archive by meta value

I have a problem where I'm trying to build a calendar plugin for a client. I'm having trouble getting a date based archive for the custom post type I'm using. I'm not too well versed in how the ...
0
votes
1answer
489 views

WordPress sitemap with Custom Post Types

This is a really neat idea but I'd like to expand upon it. In his post, David Kennedy writes out some code to allow a basic wp_list_pages type feature for Custom Post Types to use as a sitemap. His ...
0
votes
1answer
107 views

Should I change these content meta types before building complex archive page?

Hi and thanks in advance for reading this long question. I'm about halfway through building a site for a NYT bestselling author, and have hit a point where I realize I may not have organized myself ...
0
votes
3answers
888 views

Pages not appearing?

I've created 6 different custom post types, each with their own archive. I've also created a page with the same name as the custom post type, and a sub-page called 'About' for each. For some reason, ...
0
votes
1answer
238 views

Add meta data to the custom post type ARCHIVES page

i can make an easy template for displaying custom post types. but what i'd like to do is add some editable text to the top of my loop. for example: Hey wow, we really make cool products. I think ...
1
vote
1answer
648 views

Extending AZIndex plugin to use custom post types and custom taxonomies

I desperately need to be able to display something exactly like this: http://bottlesup-07112011.31two.com/bottlesup-retailers/ 5 columns of custom post type posts sorted alphabetically by custom ...
1
vote
1answer
897 views

Archive list for custom post type categories

I am using a recipe plugin that uses a custom post type of 'recipe'. I currently have multiple lists of recipes from each category on a page. I am trying to get the title of each category list to link ...
0
votes
3answers
4k views

How to disable pagination (next/previous links) on post type archive?

How can I remove the next and previous links in a custom post type archive page, but only for that post type? I know I could wrap any function in if ( get_post_type($post) == 'myposttype' ) {} but I ...
1
vote
1answer
1k views

I can't set meta_key in my custom post type query

I've created a custom post, events, and saved the meta data event_year to each event. I'm trying to get a year's event archive. When I go the the following URL, the meta_key and meta_value are not ...
1
vote
0answers
444 views

Date archive shooting 404 when months and days are quarried [closed]

I know you guys have seen hundreds if not thousands of 404 questions. I assure you I have done everything in my power. 1. updates permalinks 2. using /%post_id%/%postname%/ for structure 3. have ...
5
votes
1answer
3k views

Custom Post Type Template - Archive

I have a custom post type, called 'job', and I have the following templates in my theme: single-job.php (works fine, displays single job as expected) archives-job.php (is not recognized?) ...
2
votes
2answers
639 views

How to list custom post types?

Here's what I'd like to do: a) Create a custom post type and write panel for a menu item called "My Stuff." b) "My Stuff" will behave like a category -- but the content will not appear in the main ...
1
vote
1answer
202 views

How to use has_archive but disable feed per post type?

What is the best way to disable feeds per post type but keep has_archive enabled?
4
votes
1answer
2k views

Sort Custom Post Type Archive by Taxonomy Term [duplicate]

What is the best method (as of 3.1 or 3.2 beta) to sort a custom post type archive by a given taxonomy term? I'm trying to make a staff page and I want to sort employees by department. So the ...
1
vote
1answer
640 views

An empty Custom Post Type Archive page returns 404 in WP 3.1

I have set up a Custom Post Type called "Portfolio". If I view the CPT's Archive page without adding any posts to it (/portfolio or /?post_type=portfolio), it returns a 404 page. Is there a way to ...
0
votes
1answer
2k views

Archives for Custom Post Types (without Pages)

I'm basically looking to extend the default archives widget so that it not only displays a {month : year} list of the default Posts but also includes my new custom Post Type. From this example I was ...
3
votes
1answer
4k views

Get monthly archives for custom post type

I know this is a rather common topic, but I can't seem to resolve the issue I'm having. Any help is greatly appreciated, I'm spinning my wheels at this point. Using Custom Post Type UI plugin, I've ...
3
votes
1answer
702 views

Custom Post Type Archives with 0 Posts Redirects as 404

I'm working with the new custom post type archives in 3.1 and I noticed that when my post type has 0 posts, the archive for the type results in a 404. Looking at the order of hooks being processed, ...
10
votes
8answers
8k views

Adding custom post type archives to a WordPress menu

Is there a way (besides adding a Custom Link) to add a custom post type archive to a menu in WordPress? If it's added using a custom link (e.g. /cpt-archive-slug/), WordPress does not apply classes ...