0
votes
0answers
29 views

How can I create a portfolio archive for my portfolio CPT?

Sorry if I'm not asking the right question but, here's what I'd like to try and do... I'm working on this site I used a nice theme that included a portfolio CPT which I'm using for their product ...
1
vote
0answers
25 views

add_rewrite_endpoint() and Custom Post Type Archive

I've got a custom post type. Let's call it books. I'm adding a new rewrite endpoint called pages. I want the url /books/pages/2/ to work but I don't see any rewrite rules generated by WordPress for ...
2
votes
1answer
35 views

What are the advantages of using a custom post type archive?

I'm currently working on a theme that makes heavy use of custom post types to structure the content. To display a lot of the content I am using the respective archive-$posttype.php but this seems in ...
0
votes
1answer
17 views

Rewrite rules causing hole

I am using rewrite rules to catch /events/date/* Events is the custom post type I am working with. So archive-events.php, is normally my index, but with my rewrite rules, I need to identify a ...
0
votes
0answers
4 views

What variables from the main query do I take over to make an archive load a page out of the loop? [duplicate]

My question is a little confusing, I realize, but I'm not sure how else to word it -- sorry! I might be going about this the wrong way but I want to do with a CPT archive what WordPress does with the ...
0
votes
1answer
16 views

Return the name of the post type

I have this in the archive.php file of my theme: <?php else : ?> <h1 class="archive-title"><?php printf( __( get_post_type() ) ); ?></h1> <?php endif; ?> And it ...
0
votes
0answers
54 views

Custom post type category page not working

I have a custom post type called 'emp_case-studies'. Archive and Hierarchical are set to true. My archive-emp_case-studies.php and single-emp_case-studies.php are performing as expected. However, ...
0
votes
1answer
60 views

Displaying Page as Custom Post type landing Page

Custom Post-Types are awesome and a PAIN at the same time. Basically, I need to have a landing page, with the list of the direct child elements of the post type (think product categories), but also ...
0
votes
1answer
57 views

Compare 3 custom fields and sort by oldest

I am building a movie archive. For each movie I am filling out the release dates for 3 countries, they're stored as custom fields (added via Pods) Now, when listing the movies I would like to build ...
0
votes
0answers
64 views

Why is this custom post type defaulting to archive.php?

Working with a plugin (SermonManager) and noticed that, for the custom type defined here (wpfc_sermon), the default archive.php page is being used to render the content instead of the ...
1
vote
1answer
95 views

Alphabetical sorting of custom post type - one letter per page

Basically what I am looking for is a way to sort custom post type in alphabetical order and separate each letter, so you have one letter per page. See illustration. Hopefully there is a plugin or ...
0
votes
1answer
51 views

add_action 'init' from inside a class for custom post types

I'm trying to create archive pages for my custom post type. I create custom post types from within custom classes: functions.php include_once(get_template_directory() . '/admin/admin_init.php'); ...
0
votes
0answers
49 views

Custom post type Events - archives-events.php filter by date

I've created a Custom Post Type called Events, so I can manage my events on my wordpress site. My CPT Events has the following custom fields called : event_local, event_date_start and event_date_end. ...
0
votes
2answers
119 views

Custom Post Type - Archive page title

I'm wondering if I could make a custom Page title for my Custom post type Archive page? Today i'm using: <title><?php wp_title( '|', true, 'right' ); ?></title> For my regular ...
0
votes
1answer
47 views

Archive page for custom post type and custom taxonomy

I've made a custom post type book and a custom taxonomy book_category. I've been trying to create an archive page where the books belonging to a particular category can be viewed. So far I've only ...
0
votes
1answer
98 views

title tag for custom post type remove taxonomy name from title tag

So it appears I am missing a vital pice of information somehow to make my custom post type title tag behave. everything else works fine. my current - simple - scenario is this : wordpress 3.8, ...
0
votes
1answer
255 views

Custom post type archive page pagination

I have set up an archive page for my custom post type reference, where I use a query to get all posts of type reference. This works, but when I try to paginate the result, it doesn't work. Right now, ...
0
votes
1answer
27 views

How can I retrieve the slug for a custom post type via name?

How can I retrieve the slug for a particular custom post type via its name? I would appreciate some assistance.
0
votes
1answer
154 views

paging is not working properly on news archives page [duplicate]

I need paging on news archives page. Data is coming correctly if display all records on same page. But if i add paging code, then pagination values (such as 1,2,3,...16) coming correctly, but if i ...
-2
votes
1answer
173 views

Add a class to a menu item depending on a body class

I need to have a class of current-menu-item added to a li with the id of #menu-item-127 if the body class is post-type-archive-team I can do this with jQuery - $(function(){ if ...
0
votes
0answers
28 views

Customized custom content type archive

I'm on the archive for a custom content type which currently has four instances of said type. On the main page of the archive I'd like to show some intro text, a search form, etc, and then include a ...
0
votes
0answers
47 views

Category/Taxonomy Template not loading

I read countless topics and searched alot of codex pages for that problem but I just don't get it. My category template isn't being loaded. Instead, only the index.php comes up. It doesn't matter if ...
0
votes
0answers
65 views

Add a different payment gateway

I'm running a YITH Maya theme with Woo-commerce and I came into a bit of a pickle. I found that there are some specific gateway options, but that doesn't help me. I have a existing payment gateway ...
1
vote
1answer
1k views

Getting taxonomy terms used by custom post type

I have a custom post type - case - for which I am building an archive page. There are three custom taxonomies for this type - micro_organisms, infection_types, and antibiotic_types. These taxonomies ...
0
votes
1answer
132 views

URL of a custom post type's post format archive?

With pretty permalinks enabled, the URL of a Custom Post Format archive would look like this: http://example.com/type/link/ And it works for me. Now, considering that my custom post type archive ...
0
votes
1answer
254 views

How to remove custom post type archive

I have a custom post type called "recipe" with the has_archive parameter set to true. Visiting mysite.com/recipe/ gives a basic archive list of all the recipes posted and a page title of "Recipes". So ...
0
votes
2answers
488 views

Create a custom archive page for a custom post type in a plugin

I'm writing a plugin that creates a custom post type named "my_plugin_lesson": $args = array ( 'public' => true, 'has_archive' => true, 'rewrite' => array('slug' => 'lessons', ...
0
votes
1answer
64 views

Custom Post Type archive loop separated by term, in specific term order

I have a custom post type registered (our-team) and I have a taxonomy (team-categories) with multiple terms. Each term has multiple posts assigned to it. On my custom post type archive ...
0
votes
1answer
243 views

Custom post type archive - error in nav-menu-template.php

I created a custom post type called 'vehicle' using the CCTM plugin and copy/pasted archive.php to archive-vehicle.php but this has resulted in an error in my header: Warning: in_array() expects ...
1
vote
1answer
450 views

Custom Post Type Works but Still Shows “Page Not Found”

I have a weird problem when creating custom post types. Everything works, the archive page shows the posts and the posts show their content, but for both the title of the site says, "Page not found." ...
2
votes
2answers
665 views

Custom query variable - get wordpress to redirect to nice permalink url

I have been looking for an answer for the last couple of hours but could not find anything pointing me in the right direction. Some advice would be very much appreciated! What I already have: A ...
0
votes
0answers
217 views

Custom post type name and url parent/child structure 404 issue

I'm having a conflict between the name of my custom post type and my url structure. I've got a custom post type called 'timber-frames'. The 'timber-frames' landing page uses a page template that ...
0
votes
1answer
377 views

How can I filter by taxonomy on a custom post type's page?

Right now I am outputting the related categories to the current displayed post type as shown below. I am using wp_list_categories to list out the categories and it works just fine. The only issue is ...
0
votes
0answers
45 views

Custom post type archive doesn't react to is_archive after use of filter

I have made a custom post type with 3 taxonomies, and a filter that lets you choose a category from every taxonomy on the archive page. When I use the filter and get results, it works like you'd ...
0
votes
0answers
55 views

How can I set up the URL for a category archive for a custom post type?

I'm working on a site www.site.com that has an additional post type: project. In registering project, I've declared "taxonomies"=>array("category") so that I can categorize the essays. Works fine. ...
1
vote
2answers
606 views

Show only posts from one category on custom post type archive page

I have a custom post type, called Exercises. I also have many categories within that custom post type. I use archive-exercises.php custom loop to display my main exercises page. Question: How do I ...
0
votes
0answers
72 views

Custom Titles and Descriptions for Custom Post Types Archives

I have a few Custom Post Types (CPT). I use archive-CPT.php custom loop templates too. Question: How can I specify a custom Title tag and meta Description for each of these archive archive-CPT.php ...
0
votes
0answers
36 views

CPT Archive with parent page

Is it possible to set a parent page to a CPT Archive? I used a plugin to add archives to the nav_menu section. That works. But I also want the link to be /parent/archive. Is there a plugin or ...
0
votes
3answers
108 views

Custom Post Type archive giving 404

I am using WAMP with the latest version of WordPress installed. I have a custom post type created using the following... function register_fruit() { register_post_type('fruit', array( 'labels' => ...
0
votes
0answers
99 views

Ignoring slug capitalization on rewrite rule for custom post type archive page

I'm declaring a custom post type 'games' with a rewrite rule: 'rewrite' => array('slug' => 'Games','with_front' => false), So the resulting url for the games archive is ...
0
votes
0answers
22 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
3k 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
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
1k 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
679 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
259 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
72 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
89 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
47 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
75 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', ...