The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
16 views

How to display an other custom post type in a different custom post type's archive?

Background: I need to display all posts of a custom post type called "recipes", that have a specific taxonomy "fish", right under the permalink "www.mysite.com/recipes/fish". What I have done: I ...
1
vote
1answer
407 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
28 views

Url to archive page for custom post type

I made a custom post type , and an archive page for the post type. I don't know if there is a url where I can access this archive page? I would like to have a page where all the "posts" (products) for ...
0
votes
1answer
432 views

Posts per Page on custom Taxonomy Template

I'd like to show 20 posts on my custom tax template, using this filter: function customize_customtaxonomy_archive_display ( $query ) { if ( ( $query->is_main_query()) && ( is_tax() ) ...
0
votes
2answers
681 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
2k 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
545 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
2answers
534 views

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

Been trying to chase down an error on this page: Catchable fatal error: Object of class WP_Error could not be converted to string I have a custom post type and taxonomy: Taxonomy: ...
0
votes
1answer
596 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
0answers
38 views

Canonical url differs from custom post type archive URLs

I cannot figure out how to control canonical URL for custom post type archive pages. Here's my excerpt of CPT setting for soccer_club for example. This CPT supports default category taxonomy. $args ...
0
votes
1answer
409 views

Excluding a Custom Post Type with a specific tag using pre_get_posts

I have an archive page that lists a custom post type called 'event'. I have event posts with the tag 'regular', (the tag has an id of 53). I'd like to exclude these. I tried using pre_get_posts and ...
0
votes
0answers
32 views

Why does this only show events for one date, not all available?

This question is related to this one (custom taxonomy shows all events, not those of the custom taxonomy), which is another problem I haven't solved yet. I want to build a custom taxonomy archive ...
0
votes
1answer
21 views

Link from archive-page.php to single-page.php

I have archive-page.php, where my custom posts are displayed. I want to put a link on my image, <a href="" alt=""><img src="" alt=""></a>, which leads to single-page.php for that ...
0
votes
0answers
34 views

Custom Post Type - shows pagination (w/404) or posts_per_page query, not both

I have a custom post type of 'gallery', and I'm using a template for the archive of 'page-student-gallery.php'. My admin settings for posts shown is 5, I'd like it to show 9 on this page, of just ...
1
vote
0answers
21 views

WooCommerce free products always first in catrgory/archive loop

I needed to make some products to show POA instead of the price, so I used FREE products option and changed FREE text to POA. Now I've got a request to make those products to always be first when ...
0
votes
2answers
47 views

How do I make my archive page look like popular reviewing sites (e.g., Polygon and Gamespot) [closed]

To further clarify my question: Reviewing sites like Polygon have sections where you click on Reviews, and it shows you a page with a grid of all their reviews (latest will be at the top though). They ...
0
votes
1answer
67 views

Display custom post type archive on page.php template

I want to display the custom post type archive of my plugin inside a normal page template. My approach was: function my_include_template($template) { global $post; if ( ...
0
votes
2answers
18 views

Everytime I create my Events page, it shows up as an archive post instead of an actual page

I had an events page on my site's main menu in which I attempted to adjust some css when to my horror, I discovered the page appeared as an archive. I checked in the specific page in question in the ...
0
votes
0answers
47 views

Making a archive gallery page for a custom post type which already has an archive page

I have created an events custom post type archive by custom date field and completed all related pages successfully. It has : Archive page in the format : http://www.example.com/events/ Archive by ...
0
votes
1answer
43 views

Archive by custom post type and custom date field

I have created a custom post type called 'events' and custom date field called 'event_date' . I was able to create archive list for custom post type using this awesome plugin This plugin allowed ...
0
votes
1answer
41 views

Custom Post Type Archive template not being called

My question is similar to a number of posts on this site, but I haven't found a solution to my specific issue yet. I'm trying to implement an archive for a custom post type, "ttwi_course". I ...
0
votes
0answers
25 views

Does WordPress Have Built In Filtering By URL?

About a week or two ago I was reading this article that said that WP now has built in functionality to filter what an archive page displays based on url slugs. For example, without adding any code ...
0
votes
1answer
21 views

is_page() not working with archives?

I am creating a dynamic menu and in my foreach loop I am running a is_page using the page title: <li class="<?= (is_page($tlp->post_title) ? 'active' : '');?>"> </li> This ...
0
votes
1answer
39 views

WP_Query | 'post_type' doesn't work

I'm new to WP theme development and I've an issue. I've created a custom post type 'portfolio' via CPT UI plug-in. Now I want to create a custom query to show all the posts with the post_type = ...
0
votes
1answer
84 views

Custom Post Type Archive with Dynamic Taxonomy Filtering

I have been learning about WordPress's built-in function as described in the title. What I have learned is that WordPress will automatically filter the content displayed by the taxonomies specified ...
0
votes
0answers
109 views

Custom post type archive pagination 404

EDIT. I found the culprit causing my issue. I had the following code to change the pagination slug to "sida" to reflect the site language. It works well for blog posts, but it does not work for custom ...
1
vote
1answer
498 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
0answers
46 views

404 on term taxonomy archive pagination only with some terms

On my site I've created a CPT with a hierarchical custom taxonomy. Here the code: **CPT Args** $args = [ 'labels' => $labels, 'public' => true, ...
0
votes
2answers
63 views

Custom taxonomy in custom post type archive with pagination

I have inmy opinion something simple that needs to be done but I can't get it to work. I have a custom post type adm_project with rewrite => array('slug' => 'projecten') add_action( 'init', ...
0
votes
2answers
249 views

Order Custom Post Type Archive by multiple values in functions.php

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 custom post type The challenge I have is I need ...
1
vote
1answer
60 views

Display a custom posts page for post type

In the pages editor Wordpress now displays " - Home Page", and " - Posts Page" next to the respective pages. If I go to edit Posts page a notice reads: You are currently editing the page that shows ...
0
votes
0answers
36 views

Index.php Not Showing Custom Posts / Terms

I have my index.php page set up and is displaying my posts page as well as category archive pages without any issues. The problem however, is trying to display posts for custom taxonomy archives. The ...
1
vote
0answers
31 views

Showing only future posts in archive based on custom field date

I have custom posts that I am displaying in an archive page. Each custom post is an even and it has a custom field called 'show_date'. The events are listed in the archive based on the 'show_date'. ...
0
votes
0answers
47 views

Custom post type pagination page 2 404 error

Sorry to repost this but I haven't found a solution to my problem. I registered a custom post type instructor-emails and when I try to make the archive one post per page, the other pages return a 404 ...
-1
votes
1answer
32 views

Custom Post Type archive above Single Post in single.php (same author)

I don't know if this is possible but I'd like a separate cpt archive type of loop above the normal single post loop. Something like this in single.php archive-cpt (loop) single post (loop
1
vote
1answer
34 views

CPT custom archive template does not get loaded

I have a custom content type called events that I register using the following function: add_action('init', 'events_post_init'); function events_post_init() { register_post_type( 'events', ...
0
votes
0answers
52 views

Category in custom post type

What is the best practice to categorize CPTs in wordpress? Should one use custom taxonomies, or is it possible to use default category taxonomy? Consider having a CPT called news, is that ok to use ...
0
votes
0answers
67 views

Wordpress and Raty.js

thanks in advance for any help you can provide. I am trying to implement Raty.js into a archive template for a custom post type I have created. As far as I understand I only need to enqueue the ...
0
votes
1answer
48 views

Custom Post Type archive (archive-{post-type}.php) is not working

Many answers on this particular question, even on this site, but none of them fit me. Yes, I did all the things I know, and I got from previous answers, but my custom post type archive is not working: ...
0
votes
1answer
39 views

How to display archive page posts based on author_id

I would like the posts to be displayed on archive page of custom post - gallery based on author_id i.e. the author_id is passed as permalink variable. The posts displayed on archive page would be only ...
0
votes
2answers
33 views

Limiting the Archive page to posts posted by particular author

I am on Archive Page of a custom post type gallery. I have introduced custom permalink variable - author_id. Lets say i get the permalink variable in $perm_author_id. I want to compare ...
9
votes
5answers
5k 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 ...
0
votes
0answers
43 views

Custom Post Type Archive Looping Issue

I inherited a site that has a CPT for Events. The Event Archive keeps just keeps looping through the first 5 events. I've been fixing so many things on the site, my eyes are starting to cross. This ...
0
votes
0answers
67 views

Show custom page template page name instead of post type archive in yoast SEO breadcrumbs

I have a custom post type named AWP Authors (slug: awp-author) and to display list of author I have a custom page template named AWP Authors Page which is used as custom template for page named ...
0
votes
1answer
37 views

Custom Post Type with Configurable Sidebar via ACF

I am using a custom post type (CPT) trainings on one of my client's sites. I've also added a CPT called sidebars, which can get linked into trainings or pages via the "relation" field type. To get an ...
0
votes
1answer
73 views

why custom post archive gives always no more than 10 posts despite of paging settings?

I've got a strange problem. I'm programming a custom post archive page. I'm using wp conventions, so I've got a 'project' custom post type and an archive-project.php page, which is correctly showing ...
0
votes
0answers
101 views

Custom post type archive url when post type has archive string

Having a custom post type 'data' created by Custom post type ui plugin: add_action( 'init', 'cptui_register_my_cpts' ); function cptui_register_my_cpts() { $labels = array( "name" => ...
1
vote
0answers
170 views

Adding a menu item for a Custom Post Archive

I've created a Custom Post type (project) and it works perfectly. I have a custom archive page (archive-project.php), and that works great, too, but what's the best way to add a link to that custom ...
0
votes
4answers
111 views

How can I use archive-{post_type}.php theme template?

I've got a staff_member custom post type, with 'has_archive' => true. I've got an archive-staff_member.php template, with /* Template Name: Staff */ In backoffice, to add it to the nav menu, I ...
2
votes
0answers
151 views

Custom Post Type Settings page, choose page to display archive

So, I followed the accepted answer of this post Possible to add another setting to 'Front page displays' setting for Custom Post Type but didn't entirely work, had to compare against the ...