The tag has no wiki summary.

learn more… | top users | synonyms

5
votes
1answer
1k views

Custom post type yearly/ monthly archive permalinks

I have a custom post type "news" in my Wordpress site. I am using Advanced Custom Fields plugin to add meta data to each post. I want to create an array of news items as an archive: [2013] ...
0
votes
1answer
73 views

Template file renders on local install, not on web

I've been building a website that involves a child theme of Twenty Twelve and a custom post type with associated custom taxonomy, "area". I've built a template file (cribbed from code found elsewhere) ...
0
votes
2answers
2k views

How do I Use Multiple Loops with WP_Query?

Hi I am trying to add post from a certain taxonomy term to a cpt loop. The code below is the code I am using. <?php // Create empty array to store post ids in $excludes = array(); ...
0
votes
1answer
55 views

Create a Page Templete to Display Table Of Content for Custom Taxonomies

I have created a custom post type named "Training" & a Custom Taxonomy for the same named "Table Of Content" I need to create a Page template to display Table Of Content Something like this ...
0
votes
1answer
120 views

Make Next and Previous on single-$posttype.php use the same order as archive-$posttype.php

I have a custom post type events and am displaying these events using archive-events.php and single-events.php from the template hierarchy. I have a custom query in archive-events.php $paged = ( ...
2
votes
1answer
131 views

Archive template

I have several custom post types and we need to create separate archive templates for these. I tried the following advice, but it's still using the default archive template. In the form of the ...
0
votes
1answer
163 views

Pagination does not work on Custom Post Type archive while trying to get load more function working

Im trying to get a load more function to work with a custom post type on an archive page. I use this plugin and customized it a bit so it works with a custom post type. ...
2
votes
1answer
136 views

Custom Post Type archive as front page

I basically have the same problem like in this question, but the correct answer doesn't work for me. Yes, I get a list of posts from my CPT, but the archive-{post-type}.php is not used to render the ...
1
vote
1answer
920 views

Add the current menu item CSS class to a custom page type archive in Wordpress menu

I've been reading a lot about this but couldn't find a solution. Basically I'm trying to show a current menu item on a dynamic page that is created by a custom page type archive. The default menu ...
2
votes
2answers
3k views

Get custom post type slug for an archive page

How do I discover the custom post type slug when I'm on an archive page? For instance if /products/ fires the archive-products.php template, how (pragmatically) do I get the post type slug? Thanks
0
votes
1answer
214 views

CPT archive page - show one post from each taxonomy term

Basic loop question: I have a custom post type with a custom taxonomy and 3 terms. On the archive page (archive-custom_post_type.php), I would like to display one post from each taxonomy term. Is ...
0
votes
2answers
574 views

paginate function in archive for custom-post-type

I have a custom-post-type for events and use the normal archive.php template to list all previous events. The thing is that I use a custom query for my event-post-type inside archive.php like this … ...
1
vote
1answer
152 views

Custom-post-type-archive: posts sorted/filtered by year?

I have a custom-post-type wr_event whose posts are sorted by meta_key "event_date". Therefore I have this handy function … function get_event_list( $latest = true, $order = 'ASC' ) { echo ...
0
votes
1answer
307 views

Create template for taxonomy results limited by Custom Post Type

I've got a Custom Post Type with a Custom Taxonomy set up. So how do I create an archive template to display posts from that CPT, limited by taxonomy? Here's the deal: The CPT is called Shows. Each ...
0
votes
1answer
39 views

Get single posts archive information

I noticed something when I var_dump(); on a single page in wordpress. Its not linked to its archive page at all or any parents. Is it at all possible to get the single pages archive information as if ...
0
votes
1answer
249 views

Custom posts not paginating on archive page and returning 404

I'm trying desperately to get the pagination on my custom post type archive page to work, but I keep getting a 404 error whenever I click on <?php next_posts_link('&laquo; Older Entries') ?> ...
0
votes
1answer
564 views

How to have multiple archive pages?

I am building a site that needs pages such as News, Events, Projects and People. My question is, how should I achieve this in WordPress? Do I use custom post types? And if so, how do I have a page for ...
1
vote
1answer
65 views

How should I structure my post types?

For the site I am making, I have a few post types: News, Events, Projects, Placements. Each one of these post types will need its own archive page, accessible through the navigation. I am able to ...
0
votes
1answer
115 views

Using post type archive page for taxonomy archive

I have separate post type archive and taxonomy archive page. eg. archive-product.php and taxonomy-price.php. So when i goto example.com/product/?price=100 it redirect to example.com/price/100 and ...
0
votes
1answer
444 views

Displaying custom taxonomy menu in custom post type archive

I have two post types "restaurant" & "pub", they both share same custom taxonomy "country". And I display each post type in archive page. What I want to do is, when I visit "restaurant" archive ...
0
votes
1answer
248 views

Create a Custom Path to Archive

To get at archive pages (by default) the path is /%category%/ Which is fine. But how would i change it to have a static string prefix before the category variable (e.g. /archive/%category%). Same ...
1
vote
0answers
44 views

List Custom Post Types by Date Archive [duplicate]

Possible Duplicate: Rewrite rule for Custom post type Monthly and Yearly archive I'm not sure if I'm missing something or what! But I've been trying to get this right for past couple of ...
1
vote
2answers
190 views

Loop that displays the first post of every available custom post type?

Is it possible to create a loop that goes through all the available custom post types without statically defining what those custom post types are, and then displaying the featured image of the first ...
0
votes
1answer
217 views

Removed slug from CPT, now How/where do I hook the filter to the taxonomy term archive pages link?

I added the code below and successfully changed my CPT slug for the taxonomy terms. My blog permalinks are /article/%postname% in case you wonder, and I'd like to keep it that way, so no clashes with ...
0
votes
2answers
684 views

Sort custom posts in archive by multiple values: date AND meta key

I have a post type and I want to sort posts in its archive according to two values: by a meta value called "artwork_year" which contains a 4 digit number (year) by post publish date what the query ...
4
votes
2answers
226 views

How to seamlessly redirect between different archive and singular slugs?

I have a CPT with slug function (singular) and archive slug functions (plural). Permalink structure for: singular is /function/[postname]/ archive is /functions/[page-x/]. (can poke live at ...
0
votes
3answers
2k 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
487 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
161 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
275 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
233 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
276 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
435 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
892 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
1k 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
110 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
998 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
779 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
292 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
366 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 ...
4
votes
2answers
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
933 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
455 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
106 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 ...