1
vote
1answer
25 views

CPT: archive-cpt.php VS custom page template

I've created a CPT named portfolio. Now i want to create a page which will act as an INDEX for this CPT. Now i've two choices .... a) Make a custom template having custom WP_Query. In this way i can ...
0
votes
1answer
54 views

Archive template for custom post type only lists first 10

Here is my template for archive-people.com: It currently only shows the first 10 people. I'd like it to show everyone, not just the first 10 people. <?php get_header(); ?> <div id="content" ...
0
votes
1answer
24 views

listing custom post type category page

I've registered custom post type "deals" and its taxonomy "deals-category" the page site/deals/ runs the archive-deals.php fine but in page site/deals-category/travel/ runs the archive.php file! How ...
0
votes
0answers
95 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
125 views

Navigation menus not showing because of custom post type filter

I use this filter to show content from all custom post types in tags archive page function tagFilter($query) { $post_type = $_GET['type']; if (is_tag()){ if (!$post_type) { ...
0
votes
1answer
105 views

Two different archive pages showing the same content

I'm trying to use Query Multiple Taxonomies with Ajax. It works with Ajax and it works without it. But unfortunately not at the same time. Basically I need an Archive page to show only the posts of ...
0
votes
2answers
569 views

How to get the custom post type from an archive page?

In my website I have three custom post types: scripts, scenes and plugins. When visiting the archive page of a single post type (i.e. by going to mysite.com/plugins) you correctly see all the posts of ...
0
votes
1answer
633 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
233 views

How do I override the default number of items to be listed on an archive.php page? [duplicate]

Possible Duplicate: How To Modify The Loop in archives.php To Have 11 Posts Per Page and CSS Styling I am using the following code on my archive.php template to list a few fields from a ...
0
votes
1answer
62 views

Archive custom template from search

I'm using this code for a dropdown of categories. On selection of the dropdown the desired category is displayed using the archive template. I cannot for the love of me get the template hierarchy to ...
0
votes
1answer
148 views

Best way for a plugin to define a custom post type archive template?

I'm working on a plugin which registers a new post type, and I want to be able to define a default loop for the archive page. I've been trying to brainstorm the best way to do this, and I keep coming ...