The custom-post-type-archives tag has no wiki summary.
0
votes
1answer
106 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
180 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
30 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 ...
0
votes
1answer
36 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
1answer
14 views
How to get type of archive whether it is post or date or category archive?
using function is_archive() we can know whether it is archive page or not.
But if it is archive page how can i find whether it is author archive page or category archive or date archive.
I have ...
0
votes
0answers
23 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
32 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 ...
0
votes
0answers
24 views
Pre Get Posts fails with more than 1 Post Type
Inside Functions.php
function custom_filings_archive( $query )
{
if(is_post_type_archive( 'filings' ))
$query->set('post_type',array('the-reports','press-release'));
return $query;
}
...
0
votes
1answer
268 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 ...
0
votes
1answer
49 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', ...
-1
votes
1answer
36 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
0answers
27 views
How can i retrive the movies, trailers, news in a single page using search
How can i retrive that. For a few month i build a website, and i want to make it diferent
For the search i have 3 post type, and i have for each diferent themes for display
- Movies
- Trailers
- ...
0
votes
1answer
21 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
40 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
82 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
3answers
855 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
32 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
56 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
0answers
45 views
Wordpress Rewrite Url with arugments
I did not find any useful tips from google search and I wrote the same question in wordpress forum but there is no reply
I am writing the complete step here
First step I am redirect page to custom ...
0
votes
2answers
255 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
36 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 ...
5
votes
1answer
224 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
58 views
stdClass::$labels /wp-includes/general-template.php undefined
In my <title> tags I am getting undefined on a custom taxonomy in a custom post type and im struggling to find a way to set it.
<title><br />
<b>Notice</b>: Undefined ...
0
votes
0answers
22 views
Group Date Archives by term_id
I am trying to group posts in Yearly date archive page by term:
here is the code I am using :
<?php
$terms = get_terms("publicationcat");
$count = count($terms);
if ( ...
1
vote
0answers
105 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 ...
5
votes
2answers
693 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
1answer
93 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 ...
4
votes
1answer
61 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 ...
-1
votes
1answer
69 views
Add read more to the_content
Hi I have a custom post type that i've truncated on the archives pages using this:
function limit_the_content($content){
$word_limit = 35;
$words = explode(' ', $content);
return implode(' ', ...
0
votes
1answer
55 views
Archive-Custom-Post-Type order by Event Date, ASC, and hide events that have completed
I am building a site for a personal project and I have a series of Events created via a Custom Post Type.
I then need these events to be displayed by a custom meta value (Event Start Date) and in ASC ...
0
votes
1answer
57 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 ...
-1
votes
1answer
98 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() ...
0
votes
1answer
67 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
102 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: ...
0
votes
1answer
37 views
Permalinks that go to a specific template
This is actually my first question here, so hello to everybody in this community!
I have developed a theme with a custom post type and a template (lets call it "my_template.php") that shows posts of ...
9
votes
7answers
6k 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 ...
0
votes
1answer
72 views
Customing Annual Archive plugin
I'm using the Annual Archive plugin which shows the year in the sidebar.
I want to display in the dropdown only the years that have posts in category 17.
How can i achive this?
My code is below...
...
0
votes
1answer
51 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
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
2answers
366 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) ...
0
votes
1answer
39 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
80 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
91 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
102 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
32 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
69 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 ...
0
votes
2answers
229 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
307 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 ...
0
votes
1answer
158 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 ...
2
votes
1answer
588 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
