The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
3answers
125 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
2answers
48 views

Categories and Tags not working!

I'm at the final debugging stages for a major web design project I've been working on for the last 6 months. The site itself is based on the has become a bit of a behemoth (merging 4 existing sites ...
0
votes
2answers
51 views

Custom Taxonomy Template Error: Catchable fatal error: Object of class WP_Error could not be converted to string

Been trying to chase this error down: "Catchable fatal error: Object of class WP_Error could not be converted to string" Here's the page: I have a custom post type and taxonomy: taxonomy: ...
0
votes
2answers
666 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', ...
2
votes
1answer
1k 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
9 views

Have two (permalinks) urls for a same custom post type

I have an specific situation which I´ll try to explain. In the website I developing right now we have fairs (event) and every fair has a profile page. Lets call ns_fair custom post type and its loaded ...
0
votes
1answer
25 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
1answer
118 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
80 views

get custom post archieve by month

I want to make a custom post archieve template where I will display only the custom post by month.. I added this in archieve-news_letter.php $args = array( 'post_type' => 'news_letter', ...
0
votes
1answer
171 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
627 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
28 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
714 views

How to have Multiple Archives Widgets, one archive widget per category (in a different page)?

Please read the whole question before assuming this question is repeated. After one day of trying plugins and tutorials, I am convinced that there is no straightforward method of achieving what I am ...
0
votes
1answer
107 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' , ' ' ...
0
votes
1answer
165 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
151 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 ...
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
304 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
114 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 ...
-1
votes
1answer
100 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( ...
-1
votes
1answer
604 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(' ', ...
-1
votes
1answer
242 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() ...
-2
votes
1answer
278 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 ...
1
vote
0answers
61 views

Custom post type archive pagination query issue

I'm using the following query to paginate a custom post type archive. The number of posts on the first page is 11 (due to the page layout) and 12 on the following pages. The problem is that while the ...
1
vote
0answers
57 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 ...
0
votes
0answers
23 views

Custom post type is showing custom home page, not archive page

I have a custom post type set up (two, actually) that are not displaying properly. I am hoping that it is the same issue with both post types. Here is my code for one of the post types (portfolio). ...
0
votes
0answers
23 views

When in a archive, display the posts by hierarchical taxonomy term.

All of my posts belong to hierarchical taxonomy (a) but not all belong to taxonomy (b) and (c). How would one go about displaying the list of posts in any archive in a manner of taxonomy (a)'s ...
0
votes
0answers
40 views

Date Archive template per category

I have the following template structure currently: category-news.php category-magazine.php category-filmography.php Each page has a different sidebar, and each page has an archive widget in that ...
0
votes
0answers
26 views

Create a link to a yearly archive of post for a custom post type?

I've got a custom post type, and I'm building an archives.php for it. I'd like the archive page to link to sub-pages. Each sub-page would list the CPT's by year. How can do this?
0
votes
0answers
24 views

How to display the FAQ Archive page in my menu

I'm using the Wordpress standard menu. I've also created a custom post type. I'd like to include my custom post type archive page (the all item) in the Appearance -> Menus, but so far I can select ...
0
votes
0answers
42 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 ...
0
votes
0answers
89 views

Custom query var rewrite for custom post type archives widget plugin

I have a website soon to be delivered to the client. The client absolutely wants the following URL to be without the appended query variable: http://beta.example.com/inav1/2012/?post_type=new How ...
0
votes
0answers
170 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
0answers
89 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 ...
0
votes
0answers
96 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
0answers
23 views

What's the best way to create a theme friendly custom post type archive?

I have an events post type in a plugin I use for multiple Wordpress installations, so I'm looking for a way to implement an archive page for the event and a single page. I came across some ways of do ...
0
votes
0answers
29 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
67 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
84 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 ...
0
votes
0answers
231 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
0answers
53 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
61 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. ...
0
votes
0answers
29 views

Apply operators AND or OR while passing taxonomy query vars in form multi select dropdown

I want to add taxonomy query vars to a post type archive like so: http://www.mydomain.com/?taxonomy_a=term1,term2&taxonomy_b=term1+term2 how do I control operators in query vars if I use multi ...
0
votes
0answers
81 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
45 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
0answers
115 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
309 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
98 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
0answers
46 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 - ...