Questions tagged [custom-post-type-archives]

Filter by
Sorted by
Tagged with
1
vote
3answers
359 views

How to use has_archive but disable feed per post type?

What is the best way to disable feeds per post type but keep has_archive enabled?
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, ...
0
votes
0answers
13 views

Multiple archive pages for a single Custom Post Type

An existing project has a Custom Post Type named Restaurants. Up until now, we were showing restaurants located in one only country (spain). So I have my restaurants archive page loading all the ...
0
votes
2answers
888 views

Custom post type archive page blank

I created a CPT with slug plist via cutom plugin I made. In my local host the archive work but in live server it return blank page. Here is the 'include' archive page code /** * Add Price List ...
0
votes
1answer
869 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, ...
1
vote
2answers
900 views

is_post_type_archive not working in feed

I'm trying to alter a feed for my plugin's custom post type to add lines for podcasting. Here is the code I've got right now: add_action ('init', 'my_plugin_init'); function my_plugin_init() { ...
0
votes
1answer
22 views

Redirect logged in users from a custom post type archive page if they don't have a specific role

I have a Custom Post Type named flashcard and post of that type are listed by an archive-flashcard.php template. The bellow function force flashcard posts to be listed only for posts authors (they ...
3
votes
3answers
446 views

Is it possible to remove the posts_per_page limit on a specific post type?

I'd like to know if I can remove the limit on the posts_per_page for a specific post type. In the archive.php page I'm displaying different post type, and for the specific "publications" post type I ...
0
votes
0answers
11 views

post count not reflecting pre_get_posts action

please can someone help me out! I'm using a plugin to create a widget for a custom post type archive which is showing in a sidebar. I then added a function to further filter the results using ...
0
votes
1answer
510 views

Rewriting archive page slug to be different than custom post type slug

I am having trouble changing the slug of my archive page. The goal is to create a page that can be edited from the back end of WP with the slug speakers, but that has already been taken by the archive ...
1
vote
1answer
527 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 ...
0
votes
1answer
629 views

Combining custom taxonomy posts with default posts on one archive page

I'm trying to get custom archive posts and default posts combined onto one archive page which I have managed... sort of but I can't get pagination to work either using the pagenavi plugin or the ...
1
vote
0answers
53 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 ...
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
41 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
1answer
17 views

Why is my archive page looping through all but one post?

I've created an archive page for my custom posts, it loops through every one except the first. There is 11 posts overall and I only get 10 on the archive page. Here is my archive template: <div ...
1
vote
1answer
541 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
1answer
645 views

Pagination not working on my archive page for a custom post type

First off I have a custom post type called events, and I wrote a custom query in in my archive-events.php file. Everything is working great except for the pagination. To trouble shoot I stripped ...
0
votes
1answer
4k views

Custom Post Type Archive template page not found

This following code is custom post type: add_action( 'init', 'wpt_technology_posttype' ); function wpt_technology_posttype() { register_post_type( 'technology', array( 'labels' => ...
0
votes
1answer
675 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
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
1answer
17 views

Reverse order of posts in a certain taxonomy archive?

I have a custom post type message which has a custom taxonomy called series. Is there a way to reverse the date order of the posts in just that archive (oldest first)? I want to continue to show ...
0
votes
0answers
7 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 ...
15
votes
7answers
43k 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
-1
votes
2answers
544 views

How enter custom post meta or custom field on box post list archive page?

I ask a question that I think many people are interested in knowing the answer. What I really can't do with wordpress is to insert custom meta or dynamic custom fields into the post boxes (on the ...
0
votes
0answers
16 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 ...
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 ...
0
votes
2answers
22 views

Not able to see archive page of custom posts

I am using Wordpress 5.4. I created a CPT using the code below: $args = array( 'labels' => $labels, 'description' => 'Some description', 'public' => true, '...
1
vote
3answers
532 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 ...
0
votes
1answer
38 views

pagination problem listing custom post types of taxonomy in wordpress

I am trying to list a set of products which match a taxonomy terms. The list of the products is fine, but I can't figure out the pagination of my custom posts. I have been looking for information in ...
0
votes
0answers
24 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
29 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(); ?></...
1
vote
1answer
18 views

Automatically Give All Custom Post Types a Pre-Set Category [duplicate]

I am building a site with 5 different custom post types on and would like to create an archive page that pulls in all of these posts and then sorts them by the standard WP date order. Instead of ...
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
4answers
10k 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? Right now I'm using: <title><?php wp_title( '|', true, 'right' ); ?></title> For my regular ...
0
votes
1answer
80 views

Group custom post type posts by month

I need help grouping posts by month+year (sorted by the date the posts were published a), when in result I'd have something like this: November 2019 Event 1 Event 2 December 2019 Event 3 Event 4 ...
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
168 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 ...
2
votes
4answers
6k views

Custom Post Type archive giving 404

I am using WAMP with the latest version of WordPress installed. I have a custom post type created using the following... function register_fruit() { register_post_type('fruit', array( 'labels' => ...
1
vote
1answer
329 views

Limit the Title Length on Custom Post Type Archive Page to a Set Number of Characters

I have a custom post type 'news' and would like to limit the title character length to 42 characters on the custom post type archive page for 'news' The following code is how the title is displayed ...
1
vote
4answers
9k 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
182 views

ACF for custom post type archive pages: which hook to use?

I'm trying to register ACF options pages for each custom post type defined in the theme: $post_types = get_post_types( array( 'public' => true, '_builtin' => false ), ...
4
votes
1answer
5k views

How to rewrite slug of custom post type archive page

I have a CPT called "case-studies" and the slug of the archive page of this CPT is www.my-domain.com/case-studies and the slug of the CPT posts is www.my-domain.com/case-studies/case-study-name. Now, ...
0
votes
0answers
41 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
1answer
46 views

Pagination not working for archive

The query works for the default blog and pages but not for custom post archives. Did I miss something? $paged_bottom = (get_query_var('paged')) ? absint(get_query_var('paged')) : 1; $...
0
votes
1answer
51 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 ...
1
vote
2answers
2k views

An empty Custom Post Type Archive page returns 404 in WP 3.1

I have set up a Custom Post Type called "Portfolio". If I view the CPT's Archive page without adding any posts to it (/portfolio or /?post_type=portfolio), it returns a 404 page. Is there a way to ...

1
2 3 4 5
8