The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
14 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
0answers
27 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
1answer
18 views

Query var removed after rewrite

I have a WordPress blog that uses custom post types, which I'm creating using the WCK plugin. One of which is the post type shows. A permalink to a specific show, then, appears as: ...
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
42 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
2answers
49 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
1answer
31 views

Archive page of filtered posts

I'm sorry if my question may seem strange, but I've only recently started fiddling with WordPress development, as I was given a project already largely developed (I'm not saying it was well developed ...
0
votes
1answer
18 views

How to show all of aspecific post type that has taxonomy and a specific term

i have a post type called directory_listing, i have a taxonomy called 'place' and I have terms in that tax for place1 and place2. I need to display all the 'directory_listing' posts that use the term ...
0
votes
1answer
40 views

Output yearly archive within a page

I've almost got what I want working from cobbling bits but I need a bit of help finishing it up. What I'm trying to do is output the following (for a custom post type) within a page template (not a ...
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
2answers
53 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: ...
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 ...
0
votes
0answers
20 views

Monthly Archive page for custom post type [duplicate]

I'm using roots starter theme and create an archive-news.php file to show posts from my custom post type called "news". Works fine. Now, I want to show posts by month. Then I created a list of month. ...
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
43 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
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 ...
2
votes
1answer
59 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
26 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
18 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
1answer
106 views

How to redirect custom post type archive to first term of associated taxonomy?

I have a custom post type 'countries' and a taxonomy 'cities'. My cities are: boston, new york... I want my archive-countries.php redirect to the first term taxonomy. I mean, if my URL is ...
0
votes
0answers
91 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
183 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
122 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
71 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
91 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
132 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
112 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
100 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
532 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
57 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 ...
1
vote
2answers
213 views

Make Two Views of Post Type Archive At Two URLs

Updates 6 Feb 14 to make more specific as requested in comments. I have a post type, we'll call it "Projects", with the slug "projects" for which I'd like to offer two views: list view (default) ...
0
votes
1answer
84 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
173 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
650 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
36 views

Displaying categories items among posts

I'm making a website with lots of custom posts as well as custom hierarchical taxonomies. Default index (archive) page is made of bricks with photo, title and excerpt from posts. And here comes the ...
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
1answer
29 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
276 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
282 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
1answer
162 views

Custom Archive with Content for Custom Post Type

I'm doing a corporate site migration into Wordpress, and need an extremely custom archive page for a custom post type. I know all about the archive-{post type}.php thing, but it needs to be more ...
1
vote
1answer
170 views

Update Old Links To Pretty Permalinks Custom Post Type

I'm looking for a plug-in or bit of php that will go through about 300 posts that use hyperlinks in the old p format: <a href="http://mysite.com/?p=3592"> and automatically replace them with ...
2
votes
2answers
205 views

Custom Post Type Archive in Sub Folder

I have a sub-directory in my Wordpress theme (there are a lot of pages and I want a more logical structure). I have a custom post type called "entry" but if I place the archive-entry.php template in ...
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
86 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
2k 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
188 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
493 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
679 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', ...