The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
1answer
16 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
2answers
629 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: ...
1
vote
1answer
470 views

WordPress custom post type archive with description

I have a common design pattern I'm not entirely sure how to best execute in WordPress. The layout is a listing of post teasers (title, trimmed body, image) on an overview page. Let's say example.com ...
0
votes
1answer
650 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
4answers
280 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
660 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
32 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
1answer
31 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
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
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
32 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 ...
1
vote
1answer
131 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 ...
2
votes
2answers
175 views

Custom Post Type archive as front page

I basically have the same problem like in this question, but the correct answer doesn't work for me. Yes, I get a list of posts from my CPT, but the archive-{post-type}.php is not used to render the ...
0
votes
2answers
1k 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
29 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
35 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
22 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
48 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 ...
5
votes
3answers
325 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

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 ...
1
vote
1answer
413 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
0answers
24 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
56 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
52 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 ...
0
votes
2answers
71 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 ...
1
vote
1answer
70 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
0answers
41 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
78 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 ...
0
votes
1answer
417 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
0answers
43 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
68 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
519 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
0answers
60 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
460 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
29 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
50 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
29 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
56 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
93 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
19 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
71 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
81 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
46 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
32 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
57 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
100 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
135 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
552 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 ...