The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
437 views

Getting custom taxonomy posts on archive page

Hi I am not sure if the question is understandable or not but what I am trying to achieve I will explain. I have a custom post type called menu item and custom taxonomy called menu item type. CODE ...
0
votes
1answer
377 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
2answers
24 views

Proper way of making custom post type landing page or archive page

I always run into an issue with creating archive or landing pages for custom post types and wanted to know how others handle this. If I want to have a landing page for a custom post type, however I ...
0
votes
1answer
1k 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
352 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). ...
1
vote
2answers
458 views

How to create archive page for taxonomy terms within custom post type

I am needing to create an archive page custom taxonomy terms that are within a custom post type. It's set up as CPT > Custom Taxonomy > Taxonomy Terms. I have a custom post type called "Projects," ...
0
votes
0answers
18 views

Sensei archive page, how can I force WordPress to show content based on the archive templates

How can you force WordPress to show an archive page for a specific custom post type? The Woothemes sensei plugin has some special template files for their custom post types. archive-course.php ...
2
votes
1answer
62 views

How to List All Custom Post Types Names (Not Posts)

Having Some Custom Post Types Like "Projects", "Products" and "Events" I need to list them in a page. Please be advis that I do not want to list any POST here! instead I just want query the name of ...
1
vote
2answers
46 views

“Sticky” posts for each category (archive.php)

I need to have the ability to have Sticky posts for each category. The simplest way to do this appeared to be to just create two loops on the page. This is what I wrote: <?php //Custom "sticky" ...
2
votes
2answers
2k 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 ...
4
votes
6answers
2k 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
2answers
44 views

Using WP_Query how can I show events (a custom post type) that are in the future?

I am using a plugin called events manager. There is a custom post type called events, & each event has a date in a custom field. There is also a custom taxonomy called event categories. On my ...
0
votes
1answer
28 views

“Edit” option for custom post types archive page

I have a custom post type archive page but I also need the user to be able to insert a bit of page text. I thought I could just use the_content() of the page but the edit link is gone from the admin ...
0
votes
1answer
198 views

Custom meta Title for custom post type archive from page

I've set up some custom post types, and created custom archives, eg in the following format: archive-books.php (With a template name of "Books Template"). I then have a page (/books/) created in ...
0
votes
1answer
39 views

posttype/taxonomy/term archive page 404 error

I am trying to get archive page working for "url/posttype/taxonomy/term" but am not able to make it work for all taxonomies. I have went through a few posts regarding how to set it up but only reason ...
0
votes
1answer
39 views

Show posts in archive or homepage and sort them by number of views

i am using wordpress default loop to show custom posts types on home page. Currently it is showing latest post. I need to show Products with most views first. Please tell me how can i do this. My ...
0
votes
0answers
29 views

Custom post type archive not displaying after site move from sub-directory

I have just moved a site from a sub-directory to the root of a domain. The move went reasonably well but I came up with two issues that have stumped me. The first which I have resolved was that one ...
2
votes
0answers
146 views

Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar

I have 8 custom post types (which are actually for 8 different blogs and used as "blog landing pages"). Each custom post type is also a Blog Category and each has several sub categories to it. For ...
1
vote
2answers
1k views

Add the current menu item CSS class to a custom page type archive in Wordpress menu

I've been reading a lot about this but couldn't find a solution. Basically I'm trying to show a current menu item on a dynamic page that is created by a custom page type archive. The default menu ...
0
votes
1answer
40 views

Editable Meta Data for Custom Post Type Archive Template

My question is one of theming best practices. I constantly running into an issue were I have to display editable content on a custom post type archive page for client work - such as an image, body of ...
9
votes
4answers
4k views

How to use a custom post type archive as front page?

I'd like to use a custom post type archive as a site's front page, so that http://the_site.com/ is a custom post type archive displayed according to my archive-{post-type}.php file. Ideally I ...
1
vote
0answers
90 views

Page Template as Custom Post Type Archive

My goal is to have the slug www.domain.com/resources used by a Page Template rather than an Archive Page, and have single CPT posts as children of that slug, such as www.domain.com/resources/post. ...
0
votes
1answer
60 views

How to display CPT archives?

I have a site where we merged two blogs, one in the normal blog and one in a custom post type. Everything is fine except we cannot get the monthly archives to display for the CPT. We've tried a ...
0
votes
0answers
61 views

Permalink Rewrite with Archive - Archive gets 404

I have a custom post type, "toys", with a custom taxonomy, "toy_series". I wanted to get the custom taxonomy in the permalink: domain/toys/toy_series/toy-name I got that working just fine by ...
0
votes
2answers
4k 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 ...
0
votes
1answer
48 views

Query Posts that have Custom Taxonomy

I'm having trouble querying posts that have multiple tags from a custom taxonomy. For example, if I have a post called "Strawberry Splice," it has the Meal Types (custom taxonomy) "Gluten Free" and ...
0
votes
1answer
137 views

Adding custom post types to archive.php

I have 3 different post types in my blog. When I click on a category of a custom post, I redirect to a 404 page, because by default archive.php does not recognize custom post types. I have found this ...
0
votes
2answers
109 views

How to make an archive page displaying posts in a date range

I'm trying to make a couple of Page Templates for different Pages that should act as an archive to display posts (a Custom Post Type actually) in a certain date range. The website it concerns is ...
0
votes
0answers
34 views

Combine Different Taxonomies in Permalink

I have 3 different custonomies for a custom post type "doctor", my taxonomies are a,b,c what I want to achieve is to make all the possible combinations of the taxonomies as posts or archives. I want ...
0
votes
0answers
22 views

How to make a custom page that if the user click the list of taxonomy, the content of the custom page will change

As you can see in the image i got list of taxonomy above. the output that i want is if the user click one of the taxonomy the content below will change according to the taxonomy. I just want to have ...
0
votes
2answers
85 views

Pagination fault in custom post type archive page [duplicate]

I create ad custom post type register_post_type( 'videos', $args); and custom taxonomy for that register_taxonomy( 'video_category_categorie', 'videos', $args ); Maximum number of post displayed is ...
0
votes
1answer
55 views

Custom post types archive

I'm developing my first custom theme from scratch (using Roots as base framework). The theme has 2 CPT, one for events and one for associations with a correlation one to many between the two (an ...
0
votes
1answer
148 views

Custom post types and tag archive pages/permalink structure issue

I've been struggling to get the permalink structure to be correct on my custom post types (at least, I believe this is what I believe the problem is at this point - please correct me if you think ...
0
votes
0answers
58 views

Sorting “menu_order” does not work in WP Query with multiple post types

When i use my WP Query as follows: $post_types = array('research'); $args = array( 'posts_per_page' => 10, 'orderby' => 'menu_order', 'order' => 'asc', ...
2
votes
2answers
1k views

I can't set meta_key in my custom post type query

I've created a custom post, events, and saved the meta data event_year to each event. I'm trying to get a year's event archive. When I go the the following URL, the meta_key and meta_value are not ...
0
votes
0answers
40 views

Pagination on Custom Post Types filtered Archive Page not working correctly (jumps to the first Post)

This is my Custom Post Type "newyork": add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'newyork', array( 'labels' => array( ...
0
votes
0answers
57 views

Site loads very slow for archive custom post type page

I created a directory website which has a page that displays all the listings (1,005) This page takes VERY long to load. Is there any way to speed this up? Its using a custom post type listing. There ...
0
votes
1answer
38 views

How can I get Wordpress CPT archives and page templates to work with prettified permalink settings?

I'm having very weird issues with my permalinks and template files on this site I'm building. I've created several Custom Post Types. These all have archive pages in my template structure named ...
0
votes
2answers
385 views

Can't get post id on page that is a custom post type archive

I have a custom post type archive archive-projects.php that I am using as a page template because I have some custom fields that I want to display. I am trying to get the post id of this page but ...
0
votes
1answer
20 views

Plain <a> links in single-class.php and archive-class.php not working

This seems like it should be super-easy to resolve, but it has me stumped. All the links on my page added via get_header() and get_footer() work just fine. The links added via single-class.php and ...
0
votes
0answers
48 views

Custom post types - Archive or parent/child for navigation

So, I want to redesign my website using WordPress (as CMS) and Bootstrap (as front-end). Now, I've been pretty successful at doing so, but I have one specific problem. I have a tutorial website and ...
1
vote
1answer
49 views

Custom post type templating problem

I have a custom post type named 'product', with taxonomies 'brand' and 'type'. I'd like to have Archive Page A: sidebar with all the 'brand' terms linking to their respective archive page list of ...
0
votes
1answer
75 views

How can I give CPT archive correct body class?

I've created multiple custom post types with archives set to true with a custom slug. However, all of these archives have the body class of blog and home and no class related to the post type. I'm ...
0
votes
0answers
116 views

Notice- undefined variable post and trying to get property of non-object

i created a custom post type interview for that i also created custom post taxonomy interview_category and that custom taxonomy have some terms like students, teachers and some more. i trying to get ...
0
votes
1answer
95 views

Custom Post type and Custom taxonomy with URL rewrite worked but template did not

I search a lot but couldn't get, just got partial answer , I declared custom post type "store" with taxonomy "city", what I am trying is to make list of store based on city list and make URL like post ...
1
vote
2answers
123 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
56 views

Templates list in “Page Attributes” metabox is inaccurate

This may be a simple fix but I've spent a few hours trying to resolve it already. Template names that no longer exist are listed on the Page Attributes templates lists in the Wordpress Admin under ...
0
votes
1answer
45 views

Stop Custom post type from being searched via URL

I am developing a website in WordPress and I have used a custom post type for people to use. The custom post type only shows if the user is logged in and is the author of it, this shows on the profile ...
0
votes
2answers
604 views

Assign Page Template Within A Custom Post Type

I have registered a Custom Post Type and created a file called archive-myCPT.php and another one for single posts called single-myCPT.php. What I want to do is to create a page where I will show just ...
0
votes
0answers
52 views

how post by category related to archive post date - how to?

I'm having a really bad time to make this work .. I have a archive template, which works fine (build by custom-post-type, call archive), the archive section works perfectly, and dsiplay my post in ...