Tagged Questions
0
votes
0answers
11 views
Make only one CPT available by slug
I did a lot of research until I figured out how to remove the slug from a custom post type. I used the method described in this post here.
So I have RewriteRule ^bereiche/(.+)$ /$1 [R=301] in my ...
0
votes
1answer
63 views
Archive page for custom post type not working
I use a plugin called CPT-onomies to create Custom Post Types. I created a post type called "case", and set "Has Archive Page" to true, but when i try to view a single case, i just get 404'd. Same ...
0
votes
0answers
23 views
Custom Post Type and Rewrite Slug Not working for Archive page
I'm hoping someone can help me out. I asked this on Wordpress.org but figured no harm in asking here too.
I read an article about using a custom plugin to create custom post types. So I did. ...
0
votes
1answer
98 views
Post type archive page not working
I registered a custom post type using Custom Post Type UI, and created an archive page and named it archive-recipe.php, 'recipe' is my custom post type name. But its not working, instead its using the ...
1
vote
2answers
246 views
Rewrite custom post type url's adding meta box values
I've got these custom post types (CPT) and meta boxes:
Movies (CPT)
Genre (Meta box)
Genres (CPT)
If one movie is called Die hard then I want the permalink to be:
/genres/action/die-hard
This ...
0
votes
0answers
45 views
Archive Page Pagination not working
I am using the following template for a custom post type. The pagination does not work as you can see at http://www.xava.ie/testimonials
Any hints as to why it is not working for me?
<?php
...
0
votes
0answers
42 views
Custom Post Type query not working in archive.php
I have a custom post type namely "Slider" for a banner slideshow on the website. I run a custom loop query to get the slides from the custom post type. I have put the code on every template file ...
-1
votes
1answer
48 views
Pagination for Custom Post Type with Multiple Types
The first page shows the first results however, mypages/page2 leads to a 404 error. The following code is inside archives-mypages.php
<?php
$temp = $wp_query;
$wp_query=null;
$args = array(
...
0
votes
1answer
25 views
Specify a Page as the parent to the CPT Archive
I have an "About Us" page on my site with some child pages. I have created a "History" custom post type, where the rewrite slug is 'history'.
I use archive-cpt_history.php as the template file for ...
0
votes
1answer
50 views
Archive of custom post type returns 404 [duplicate]
I have created a custom post type "video" (see my functions.php below) and it should return an archive on mysite.com/video but instead I get a 404.
Functions.php
// Video's
add_action( 'init', ...
0
votes
1answer
62 views
How to use WP_Query in a CPT achive page?
I can't get WP_Query to work in my custom-post-type archive page. Can someone please tell me what I'm doing wrong? I would appreciate any help.
Here's the code in archive-bulletin.php:
<?php ...
2
votes
1answer
110 views
Custom Post Type / Taxonomy Slug / Post Title with post type archive
I've tried plugins, read through stack and spent hours on this, and I just can't seem to find a way to achieve what I want.
I can achieve the following permalink structure:
...
0
votes
1answer
41 views
Custom taxonomy archive page not routing?
I have a plugin free custom post type and taxonomy setup - see below. From this I get an archive of the CPT at:
/archives/nomination-archive
If I use the_terms( $post->ID, 'nomination_type' , ' ' ...
1
vote
2answers
79 views
Have a Custom Post Type index page display taxonomy items instead of posts
I have a CPT registered that is called lessons with a custom taxonomy (category) that is called courses. I want the /courses page (archive-courses.php?) to display the individual courses (i.e. "online ...
0
votes
1answer
38 views
single-mySlug.php works: archive-mySlug.php does not. Custom Post Type
I am registering a custom post type (listing) with a plugin and it has two taxonomies. It all seems to work as expected.
I can display individual posts from the CPT using single-listing.php but I ...
1
vote
1answer
183 views
Adding Sticky functionality to Custom Post Type Archives
In WordPress, Custom Post Types do not have Sticky functionality as a core feature. It is possible, I'm sure, to create it in certain cases—and I'm working on a project that requires it for ...
0
votes
1answer
164 views
Custom Post Type Archive Page not showing
I have a category on my website called 'profiles' I am in the process of moving this category to a custom post type called 'profiles'.
My problem is I cannot get the archive page to show for this ...
0
votes
1answer
64 views
Order Custom Post Type Archive by multiple values in functions.php
Sorry in advance for my limited PHP skills.
I saw this post and the function helped to fix my pagination problem for the archives pages for my custom post type. pagination doesn't show up for ...
5
votes
1answer
97 views
How do you create an archive for a custom post type from a plugin?
So I'm creating a plugin to create buildings that list condos for sale. The simplest way to do this was to just create a custom post type for the buildings and then the listings but I'm now stuck on ...
0
votes
1answer
85 views
My archive-posttype.php template is not loading
I'm trying to create an archive-photos.php template for my photos custom post type. The problem I have is that when I view the page it is the archive.php template that is used, not the ...
0
votes
1answer
124 views
Custom post type category permalinks and archive pages
I know this question was brought up before, but I can't seem to get things working using any of the proposed solutions. This is how I have my custom post types and categories setup:
Custom Post Type: ...
-1
votes
1answer
112 views
Custom Post Type Archive Title Lowercase
Is there any reason that my custom post type archive title is all lower-case even though 'name' is defined as sentence-case?
Here is the post type function I'm using:
function resources_post_type() ...
5
votes
1answer
267 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
0answers
63 views
Link not working on archive pages [closed]
I am using this code to add links on top of custom post type archive page. Links are showing up but not working and not clickable.
function theme_filters() {
if(is_post_type_archive()) { ?>
...
0
votes
1answer
40 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
88 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 = ( ...
0
votes
1answer
113 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.
...
0
votes
0answers
33 views
Custom page type archive page - content controlled by page? [closed]
I have a custom page type called staff, I have staff-archive.php and I have the custom page type set to use an archive page.
All is good with that.
I have a page called staff, and I have the ...
1
vote
1answer
70 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
344 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
1answer
729 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
170 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
248 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
114 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
189 views
How to 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
31 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
288 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
58 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
368 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
103 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
40 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
141 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
3answers
1k 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
237 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 ...
1
vote
2answers
177 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
752 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 ...
0
votes
2answers
793 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
606 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?
...
1
vote
2answers
1k 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
103 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 ...

