The tag has no usage guidance.

learn more… | top users | synonyms

-1
votes
0answers
14 views

How to add post type archive link to pop-up box link?

There are any way or plugin to add post type archive link inside editor link pop-up box? I having all page, post and other custom post type, but I haven't archive link. Thank you!
1
vote
1answer
22 views

Unable to get post archive link

I'm extending the Fall Wordpress theme by using my own child theme. One of the things I'm trying to do is to make an archive page for the 'service' custom post type. That type is defined in the parent ...
0
votes
1answer
7 views

Show index and not the archive for “Dog Custom Post” with default slug

When creating a Custom Post, in my case with the name dogs and slug dogs, at the url www.example.com/dogs Wordpress shows by default the archive page if has_archive is set to true I don't want to ...
1
vote
2answers
44 views

How do I get the permalink structure to work like this?

domain.com/rents/miami-dade/ domain.com/companies/miami-dade/ Then for, say rents/miami-dade/ I would loop through some different areas within miami, showing a list of rents for each area. For ...
0
votes
1answer
25 views

adding custom post type “name” to single template

i created a custom post type called 30 day boot camp using this code: add_action( 'init', 'rt_custom_post' ); function rt_custom_post() { register_post_type( '30-day-boot-camp', array( '...
6
votes
1answer
135 views

Meta_Query as a way how to setup CPT permalinks - is it a good thing?

I'm creating quite complex website for a literary magazine. For its custom post types Issue and Event, I wanted different permalink structure than for posts (which is basic http://example.com/%...
0
votes
1answer
34 views

get the custom post type title/name

I'm using a custom post type and use this plugin to display my custom post type's archives, does anyone knows how to display my custom post type's name/title to the archive.php? Below is the archive....
0
votes
0answers
30 views

Custom post type archive option

I have a custom post type of 'channel', within which there's different channels - all of which have parent/children relationships for geographically-oriented sub-channels. I want an archive (using a ...
0
votes
0answers
26 views

Is there a custom sort-order for this?

I haven't been able to find a solution to this, and suspect it's not possible so may have to do it manually. I have a cpt of 'channel', within which there's different channels - all of which have ...
1
vote
1answer
50 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, '...
0
votes
1answer
61 views

Custom post type archive page not showing on archive-posttype.php

I am trying to create archives page for my custom post types but it is going to a default archive page not the archive page which i have created for archives Here is my code for custom post type ...
0
votes
1answer
41 views

Custom post type with two templates

I have a custom post type with an archive-my-post-type page and now I need a second archive page without header and footer and with a custom content. So my question how can I create a second page ...
0
votes
0answers
18 views

Change archive permalink with variable [duplicate]

I have a custom post type, where I've added the category. This is the post type registration: register_post_type( 'solution', array( 'labels' => array( 'name' => __( 'Oplossingen' ), ...
0
votes
3answers
56 views

Editable content on a Custom Archive page

I want to allow my client to change some introductory text on a custom post archive page (eg. archive-unicorn.php), but I can't see how to do this. I guess one way I could do this is would be to ...
0
votes
1answer
31 views

Highlight a Post on archive page if it has a new comment?

I have been searching for a solution to highlight a post if it has a new comment but there is no plugin/forum answer about this. Basically I have a custom post type listings on a page. I want to add ...
0
votes
0answers
40 views

Create a custom taxonomy archive to pull categories that have two matching taxonomies

I'm trying to create an archive page for a custom post type that will pull in taxonomy categories that match two per-determaned taxonomies. I do not need to display the products on this archive page. ...
1
vote
0answers
26 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 ...
0
votes
1answer
59 views

Archive Custom Post Type

I need to apply this rewrite rule to multiple custom post types. Currently it is only using one cpt "articles" but i need it to apply to "articles" & "newsletters" How do i change the code to ...
0
votes
1answer
63 views

Custom Post Type Archive - archive.php is present, but it is not being used

I have a custom post type called Treatment. From my understanding of WordPress, archive.php will always be used unless there is an archive-{posttype}.php. For some reason the archive page is instead ...
0
votes
0answers
26 views

Filter WordPress custom post type with taxonomy

I'm new to word press I have create one custom post called product and have three taxonomy in it. 1.product type 2.location 3.category now i want to search product with all taxonomy selected by ...
0
votes
1answer
93 views

custom post type archive page url to point to Page permalink

I wish that my 'custom post type archive page' would point to Page. The situations is as follows: I have Page in Wordpress with permalink http://myurl.com/galleries. This page shows list of posts ...
0
votes
1answer
78 views

How to set up Custom Post Type archive page as Front page

I've registered a custom post type named portfolio and have coded it's respective archive-portfolio.php file. Now, my requirement is to make this page available to be set as front page. For which I ...
1
vote
1answer
117 views

How to filter by date & a specific custom post type post-WP 4.4?

WordPress 4.4 introduced the ability to display date archives by appending /?post_type=custom_post_type to the end of the date url. i.e. localhost/2016/02/?post_type=news. I had assumed I could do: ...
0
votes
2answers
85 views

Removed custom post type archive page shows blog page

On a website made with a purchased template, a custom post-type had an archive page. I didn't want that archive page, so I altered the custom post-type in a child-theme like so: function ...
0
votes
0answers
84 views

Pagination not working in archive page (archive.php) and custom page template for categories

When clicking second page, it goes to 404. I changed permalinks also,it always shows 404 page. Here is my code <?php global $wp_query; $paged = (get_query_var('paged')) ? get_query_var('paged') : ...
0
votes
1answer
107 views

archive-{$post_type}.php not loading. instead the default archive.php loads

My has-archive is set to true in the register_post_type. My archive-portfolio.php exists. I've tried flushing rewrite rules. I've tried a lot of other stuff, and after every step, I reset/saved/...
1
vote
0answers
59 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 ...
0
votes
1answer
96 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
0answers
87 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
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
43 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
73 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 ...
0
votes
2answers
63 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
129 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 ( is_post_type_archive('...
0
votes
2answers
20 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
96 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
47 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
26 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
109 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
47 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
78 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
117 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
90 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
135 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', '...
1
vote
1answer
106 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
55 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 ...
0
votes
0answers
78 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
vote
0answers
117 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'. ...
-1
votes
1answer
75 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
39 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', ...