Tagged Questions
1
vote
2answers
18 views
Create permalink structure for one taxonomy archive per custom post type
So, I've been going crazy trying to figure this out. Essentially, I've created two custom post types, 'the_case_study' and 'the_video', with respective slugs 'case-studies' and 'videos'.
I've also ...
0
votes
1answer
25 views
Display CPT index page as front/home page
I'm building a website that's sole purpose is to display other websites (defined in the CPT). Think of it as a portfolio site for a company's digital assets. I have already defined the CPT and added ...
0
votes
1answer
18 views
How to prevent a custom post type from using the archive.php template?
I have the following:
//Jobs
register_post_type( 'jobs',
array(
'labels' => array(
'name' => __( 'Jobs' ),
'singular_name' => __( 'Job' )
),
...
2
votes
1answer
56 views
Custom Post Types and archives
I have a custom post type: cats
When I visit http://mysite.com/cats I see all of my cat posts displayed using the template file archive-cats.php
I filtered getarchiveswhere to only return posts from ...
0
votes
1answer
38 views
How to let custom post type posts show in standard post archive (like in homepage)?
If I, for example, create a custom post type named 'tutorial', how do I get it to also show up in places like "Recent posts" , etc?
0
votes
1answer
28 views
Generate daily archive whenever any post type is added
We have an issue with our date archive in WordPress, where our daily archive (example address www.xxx.com/2013/01/09) is only generated when a post from the default post type is added. Any day where a ...
2
votes
1answer
51 views
Category page only displaying the posts from a custom type
Situation
I have two cpt:
Projects
Works
In these two CPT I share the same taxonomy 'Category', and the same terms:
Architecture
Landscape
Interior Design
I have URLs like
...
0
votes
2answers
54 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
0answers
155 views
Simple Jquery custom post type archive slide toggle
Hi I'm not sure if we deal with jquery in this section but as it is wordpress related I will ask anyway.
I am currently have an custom post archive that displays all posts(li's) in a month(ul's). I ...
0
votes
0answers
55 views
Custom Post Type - FIlter by year, THEN by category
Although I don't necessarily believe this to be a good idea, the client has asked this of me.
It's cake to filter by category and then filter by year (as really it just adds "?y=2011" to the end of ...
0
votes
1answer
48 views
Assign CPT archive page attributes
I have a custom post type recipes which uses the archive-recipes.php template automatically.
I have a Wordpress page called Top Recipes which is set to use the archive-recipes.php template in the ...
0
votes
1answer
32 views
How to make a list of posts displaying them 5 by 5 with a “next posts” link?
I have been googling for the past 2 hours and haven't been able to figure this out, mainly because I am missing the right terminology, in other words, I don't know what I want in "wordpress words".
...
0
votes
2answers
133 views
Custom post types archive redirect
I had a custom post type with slug as (sometext) which I changed to (someothertext)
And it works great
So for example :
my posts with urls like
http://localhost/sometext/innerposts
gets ...
0
votes
1answer
66 views
Stop header code from showing in category page?
Hi I'm using the code below to show different header images in my custom template archives.
Only problem is that it is also showing the headers in the category templates.
go to ...
0
votes
1answer
168 views
is_singular won't call my functions?
Hi i'm using this code to call for a different stylesheet for a single post type but the problem is, It won't call the stylesheet.
It's in header.php, i also tried placing it in single.php
<?php
...
0
votes
1answer
77 views
Query Custom Post Type and sort by year
How do I create a page template were I can query all the posts from the Custom Post Type - let's say - "project" and order the results by year, displaying the year value at the beginning of each group ...
2
votes
1answer
82 views
Custom post type with tags
My understanding is, that custom post types can share tags with the posts also.
I have created tags and applied them to a blog post and a custom post type.
Yet when I click on a tag it only returns ...
0
votes
1answer
62 views
Set a hard-coded page-template (post-type-archive) as home/front-page of my wordpress blog?
under Settings->Reading I can set which page should appear immediately when visiting my site as "home-page".
In my case I want the archive of my custom-post-type named "events" as home/front-page of ...
0
votes
3answers
79 views
Custom post types not using archive structure
I've been banging my head against my iMac trying to figure out what's wrong. I've also trolled these archives and have tried the following things to fix:
flush permalinks
remove possibly conflicting ...
0
votes
1answer
79 views
Custom Post Type with archive page but no detail page
I want to have custom post type that have only title and archive page, but no detail page.
Here is what custom post type code:
add_action( 'init', 'register_cpt_trivia' );
function ...
2
votes
1answer
611 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
0
votes
2answers
238 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
110 views
Custom-post-type-archive: posts sorted/filtered by year?
I have a custom-post-type wr_event whose posts are sorted by meta_key "event_date".
Therefore I have this handy function …
function get_event_list( $latest = true, $order = 'ASC' ) {
echo ...
0
votes
2answers
376 views
Event Archive by Month
I'm creating an events site for a theatre in wordpress - at the moment I have set up a custom post type for Events and am using a custom field 'event_date' (which formats to YYYY-MM-DD) to order the ...
0
votes
1answer
183 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
269 views
Include Custom Posts Type in Year/Month/Date Archive
I am looking for solution where I able to get all custom post types in year, month and date archive list. So it can be filters by anything either year, month or date. I am looking for function ...
0
votes
1answer
271 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
97 views
Create a Custom Path to Archive
To get at archive pages (by default) the path is /%category%/ Which is fine. But how would i change it to have a static string prefix before the category variable (e.g. /archive/%category%).
Same ...
1
vote
0answers
40 views
List Custom Post Types by Date Archive [duplicate]
Possible Duplicate:
Rewrite rule for Custom post type Monthly and Yearly archive
I'm not sure if I'm missing something or what! But I've been trying to get this right for past couple of ...
0
votes
3answers
2k views
Displaying category archive of custom post types
I am woefully late to the party on Custom Post Types and only started using them quite recently, so apologies if my questions seems idiotic, but I can't seem to find an answer to my question.
I've ...
0
votes
1answer
363 views
Advanced archive url structure (category, tag and date)
Is it possible to create a permalink structure like this:
mysite.com/category/books/tag/read/2010/01
Or at least something like this:
mysite.com/category/books/?tag=read&year=2010&month=01
...
0
votes
1answer
266 views
Custom taxonomy or custom page templates?
I'm trying to decide whether it would be more appropriate to create two new custom taxonomies or if custom page templates would be easier. Here's the scenario:
I have 2 custom posts types: "Cocktail ...
6
votes
2answers
249 views
Permalink Structure for Multiple Post Type Archives by Taxonomy
Recently I have been working on an advanced WordPress project, and I'm stuck with changing permalink structure for custom post types.
I have created 3 post types lets say: type1, type2, type3 and a ...
0
votes
1answer
227 views
Custom Post Type Date Based Archive URL rewrite [duplicate]
Possible Duplicate:
custom post types, wp_get_archives and add_rewrite_rule
I have a custom post type called "course" and I would like to create a date based archive similar to the default ...
2
votes
1answer
287 views
Display Editable Text Above CPT Archive Listings
I have two custom post types (Authors and Partners). I display their archive page's in the main navigation and use archive-authors.php and archive-partners.php to make a couple small tweaks to the ...
0
votes
4answers
926 views
get term archive url / link
I created custom post types & custom taxonomies for these.
Example: actors (taxonomy) for movies (post type).
Now I want to show up in my widget some terms and a more link for the actors terms ...
0
votes
1answer
139 views
How to turn custom-post archive into an overview page, listing the metadata of the posts?
The background: I am new new new to Wordpress, to CMS's in general. I have been trying for 2 days to get this to work but I am not succeeding.
I about 20 different custom post types. Each post type ...
1
vote
3answers
395 views
How to show a tag archive of one post type only
I have a site with multiple custom post types and taxonomies. The taxonomies are shared across all of the post types.
On the archive page of the 'videos' post type, I want to show a list of all of ...
0
votes
1answer
463 views
Pagination throws 404 error on custom taxonomy archive pages
I have created a custom taxonomy for a custom post type called "portfolio" like so:
function jvs_portfolio_categories_init() {
register_taxonomy(
'project-category',
'portfolio',
...
0
votes
3answers
840 views
Problems with 404, .htaccess, permalinks and Wordpress custom posts locally on Snow Leopard
I have a custom "about" post:
function about_register() {
$labels = array(
'name' => _x('About Page', 'post type general name'),
'singular_name' => _x('About ...
1
vote
2answers
176 views
Second Custom Post Type Archive
I've got an event custom post type, and using filters, I've configured the archive page to show only event in the future, and in chronological order based on a meta value (start date).
I want to make ...
2
votes
1answer
512 views
Custom post types - Use post_id in permalink structure when using has_archive => true
I recently asked this question Custom post types - Use post_id in permalink structure and solved it but as I have enabled 'has_archive' => true the solution given no longer works. Let me explain:
...
0
votes
3answers
94 views
Dynamically insert an article at the top of a taxonomy archive - or?
I'm making a directory for half a dozen sorts of venues that are located in innumerable cities in all 50 US states. My plan has been to use a custom post type for each venue type and then assign a ...
0
votes
1answer
177 views
Need post_type_archive_title function but in 'single'
I'm trying to pull a custom post type name/title out for use in the breadcrumb of a single-[cpt].php template file.
In the archive-[cpt].php I can use post_type_archive_title() and it echo the name.
...
0
votes
1answer
134 views
How can I allow users to edit text that will be displayed on a custom post type archive page?
I like the custom post types Wordpress offers. Most of the time I like the way that the archive of custom posts is displayed. For example if you have a custom post type of top_hats you can visit ...
0
votes
1answer
472 views
Page is defaulting to archive page and not designated template
I created a page called "Projects" through the wordpress admin
I created a template called "Projects"
Set the "Projects" page to use the Projects template.
How come when I navigate to the Projects ...
4
votes
1answer
92 views
Multiple Paginations on one Page
I have a page template which aggregates multiple CPT's in different areas of the page and displays the first post from each CPT. I'd like to add a separate pagination for each of them. Is it possible ...
0
votes
1answer
198 views
How can I increase the post count for custom post types only?
I have the page count set to the default 10 in my reading settings menu.
However, I use my template archive.php file for all post types, including posts and books
How can I change the loop so that ...
4
votes
1answer
1k views
Custom Post Type Archives by Date with Custom Permalink
I'm a bit stuck with getting the custom permalink for custom post type (CPT) archive to work.
I've registered my 'press_release' CPT as following:
add_action('init', 'press_release_post_type_init');
...
0
votes
2answers
149 views
How can I tell if I'm on a custom post type archive page?
I have set up a custom post type and a custom taxonomy for it. I'm using the latest version of Wordpress. I believe I should be using the is_post_type_archive function, but this seems to be is ...

