Questions tagged [custom-post-type-archives]

113 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
304 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'. ...
3
votes
0answers
970 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 ...
2
votes
0answers
27 views

I am facing problem in my archive page , it is partially working

I am using wordpress 5.1 and I am creating a blogging website. I am having an issue in my blog posts: when I click the permalink(link) of category it is showing the output but when I click the author ...
2
votes
1answer
351 views

Ordering Posts Type A by Custom Fields of related Post Type B

I'm not sure if this is even possible (also posted to ACF forum https://support.advancedcustomfields.com/forums/topic/ordering-by-custom-field-of-relationship-field-object/#post-62454) I have two ...
1
vote
0answers
31 views

Use Custom Post Type archive page for the taxonomies term archive page

In my wordpress theme I created a new custom post type 'books' with 2 taxonomies ('series', 'genres'). when I visit the archive of the cpt 'books' (site.com/books), I list all the books. I added a ...
1
vote
0answers
27 views

Display custom post type category, while in a CPT category, then the posts beneath

I'm trying to list custom post type categories, then the posts beneath them that are contained in that category. This will be on a parent category page. It should look like: To-Go (Parent Category ...
1
vote
0answers
180 views

Single post with a Custom Post Type returns 404, when archives of the CPT work correctly

I have created a custom post type called "medya" with the codes below: <?php function create_posttype() { register_post_type( 'medya', array( 'labels' => ...
1
vote
0answers
27 views

Number of Custom Post Types published are not being shown in the custom page

NOTE: If you're new to this question, it is already solved you just need to add the 'posts+per_page' parameter in the new WP_Query array... I wonder why they(stackoverflow developers) do not give ...
1
vote
1answer
502 views

Set up Custom-Post-Type Author Archive

I’ve set up a custom-post-type on a site for jobs, and this all works fine. When I click on the author (my name) on the Custom Post Type though it goes to the archive.php file (as you can see in the ...
1
vote
0answers
322 views

Custom Post Type has_archive

I have the following code in my functions.php file:- /** * Register Add Job * */ add_action( 'init', 'rv_jobs_cpt' ); function rv_jobs_cpt() { $labels = array( 'name' =...
1
vote
0answers
243 views

Custom Post Type Archive URL is wrong

I'm using CPT UI and have several custom post types. Separately, I have my permalinks settings set to append /blog/ before all blog post single pages. I have the "with front" setting set to false on ...
1
vote
1answer
121 views

How to display custom post in archive section of the wordpress page?

I am using Wordpress Version 4.6.1. I created a Custom Post Type (CPT) named Portfolio. It works fine. But the problem is I want the custom posts to display in the archive('Archives') section of my ...
1
vote
0answers
67 views

Content Editable CPT Archive?

I have a CPT called foobar the archive of the CPT defaults to example.com/foobar/ I have my cpt set to use an archive, because I want the user to see content when visiting example.com/foobar/ - I want ...
1
vote
1answer
204 views

Taxonomy archive page WP_Query does not return get_the_permalink() or get_permalink() value

In a taxonomy archive page, within the following loop: $type = 'classes'; $page_taxonomy = get_query_var( 'classes_class_type', 'yoga' ); wp_reset_query(); $args=array( 'post_type' => $type, '...
1
vote
0answers
31 views

list archives per post types

I have a custom page template and in that template, I display the posts from the 3 custom post types <?php $args = array('post_type' => 'news1','posts_per_page' => '10'); $news = new ...
1
vote
0answers
157 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
0answers
909 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 =...
1
vote
1answer
538 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 ...
1
vote
0answers
61 views

Custom post type archive page thinks I'm not logged in

I have created some custom post types using the Types plugin, and created their archive pages by copying my theme's archive.php and renaming it archive-{post type slug}.php. When I view these archive ...
1
vote
0answers
762 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
132 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 ...
1
vote
0answers
226 views

Is it possible to have a custom post type with feed but without the archive?

In Wordpress 3.9.2 I couldn't find the way to have a custom post type which would have the feed permalink like this: example.com/custom-post-type/feed/ But didn't show the archive (show 404) for: ...
1
vote
0answers
137 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
801 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 ...
1
vote
3answers
7k 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, ...
1
vote
0answers
684 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 <mysite>.com/...
1
vote
1answer
369 views

Paginate_links in custom post type template

I'm trying to display the paginate_links function within a custom post type. But it does not show up on the site. Here is the loop: <div class="container"> <?php $objekte_args = ...
0
votes
0answers
14 views

Custom post type author issues

I've created a CPT called 'artigos' (articles), which supports title, editor, thumbnail and author. I can see and choose the author of the post, but in the users screen, the number of posts assigned ...
0
votes
0answers
40 views

What code do I “comment out” to remove the loop from this Custom Taxonomy

In my theme (which is the amazing GeneratePress) there is, of course, an archive.php file. I have custom taxonomy which (to save a long and boring discussion) needs to have its' loop removed or hidden....
0
votes
0answers
18 views

pretty urls for categories instead of query string along with pretty pagination

I am trying to add a pretty urls instead of query string like customers/reviews/xyz here reviews is a custom post type and xyz is category customers/reviews gives all reviews and customers/reviews/...
0
votes
1answer
24 views

Custom Post Type / Taxonomy not displaying archive

I am trying to use the Atreas Theme: https://wordpress.org/themes/antreas/ This is the site I am working on: https://sandbox.paediatricphysiotherapyassociates.com/ All I want is an archive page for ...
0
votes
0answers
6 views

Is there a way to create archive pages or video galleries by using external playlist URL

Hello I want to know if I can make some kind of archive page that auto upload results feeding from a external url. My goal is to make this using a video playlist so each link in the page should open ...
0
votes
0answers
13 views

WordPress Page hierarchy ( parent is singular of custom post types slug ) is returning not found

I have a custom post type called CASINOS with slugs is casinos wich has _archive set to false and I have a page called Casino with slug casino ( singular) The problem is when creating a child with a ...
0
votes
0answers
23 views

Use archive template for CPT but not generate urls for posts items

I need to be able to use the archive template for a custom post type but also at the same time prevent URLs from being created for the "posts" that are created, and keep the posts publicly visible. ...
0
votes
0answers
28 views

Custom Post type page content (archive page)

I have website with multiple Custom post types and I need to create an Archive page for each post type that also has extra content (short description and the like). The way I would about this would be ...
0
votes
0answers
15 views

Pagination Not Working With Custom Post Type Category

I can't get pagination to work with this custom post type category archive. The custom post type is called 'blog'. <h2 class="category-h2">Blogs Category: <?php single_cat_title(); ?></...
0
votes
0answers
17 views

Display custom posts and their childs hierarchicaly

I am working on a support manual. I created a custom post type 'manual' and I want to display an automatic menu of the posts and their childs. It would look like this: Post 1 Post 2 Child post ...
0
votes
1answer
19 views

I want to create a custom taxonomy page showing a list of subcategories

hoping one of you wizards can help me with this one. I'm fairly new to this. Here's the situation - I have a custom post type called 'Videos' where I set up a Custom Taxonomy called 'Country List'. I ...
0
votes
0answers
19 views

How to get and then style the Current Active link?

Hey there commumity this is my first question as a dev. I have made a list of the categories that are inside my custom post type by quering them. The problem is that I cant find a way to keep which ...
0
votes
1answer
144 views

ACF Pro Accessing fields on a Custom Post Type

I'm an intermediate PHP user and I've been able to do some great things on my own with ACF but I could use some help. Instead of using an options page, I would like to add some fields to the Custom ...
0
votes
0answers
40 views

Static Front Page not working for custom theme

I'm building a custom theme for a client... I am trying to set up a static front page, but no matter what page I select it falls back to a custom post type archive page. I have confirmed that I can ...
0
votes
0answers
25 views

Category page don't show custom post type

I have a problem with category of custom post type. If i categorized posts (for example in "test" category) and than if i click in this category I see all post that categorized "test". That is good ...
0
votes
0answers
49 views

How to setup permalink structure for categories, sub-categories, custom post types and custom taxonomies?

I'm struggling to figure out how to setup the URL structure on a new WordPress. I've tried several combinations of custom (and default) post types, custom (and default) taxonomies, permalink plugins, ...
0
votes
1answer
44 views

Creating an archive page or simple template to list all values of a custom field of specific post type listing

I have a custom post type named 'lawyer' and it contains various custom fields. two of the custom fields are 'state' and 'city'. i want to create a archive page or simple page(anyone will do) which ...
0
votes
0answers
28 views

How to make archive of categories subcategories for custom post pages that distinguish between CPT

I have a problem I have 4 different custom post types readymade_public readymade_private collections_public collections_private And the structure is something like this is going to work ...
0
votes
0answers
89 views

Overriding the template files using a plugin for all themes

I believe these are the common filters to use when overriding a template template_include single_template page_template archive_template The works but it seem that they are theme depended. I am ...
0
votes
3answers
186 views

How to show category list in WordPress

If anyone know, if there's plugin to customize taxonomy list it will be faster to do. But here's my question. i create post type "product" and the categories. inside post type product, i make ...
0
votes
2answers
62 views

Tell wordpress to show a single page instead of an archive page

my wordpress site urls like this: https://example.com/?pid=a125a5&lang=en and query of my archive page like this: <?php $the_slug = get_query_var('pid'); if ($the_slug){ if ( $post = ...
0
votes
1answer
618 views

Display Custom Post Type Archive content with Shortcode

So I've created a custom post type filled with Advanced Custom Fields only. There is no "content". I've created a single-custom.php, content-custom.php and archive-custom.php. All looking nice and ...
0
votes
0answers
55 views

Permalink for custom post type pages not working

Having some trouble with pagination and custom post types. I have 3 custom post types active currently: 'webinar', 'resource', and 'faq'. For each of these custom post types, I'm using the archive-{...