The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
1answer
18 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
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
113 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
6 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
1answer
415 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 ...
6
votes
1answer
133 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/%...
1
vote
2answers
43 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
2answers
2k 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
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( '...
0
votes
1answer
433 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, ...
3
votes
5answers
12k 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
vote
1answer
525 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
2answers
704 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
28 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
1answer
693 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
0answers
27 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
1answer
695 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
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 ...
0
votes
1answer
473 views

Displaying Page as Custom Post type landing Page

Custom Post-Types are awesome and a PAIN at the same time. Basically, I need to have a landing page, with the list of the direct child elements of the post type (think product categories), but also ...
0
votes
3answers
55 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
338 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 ...
1
vote
1answer
37 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
4answers
312 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
37 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
56 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
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' ), ...
1
vote
1answer
137 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
1answer
30 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
38 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 ...
5
votes
3answers
338 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
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
25 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
76 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
72 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
83 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
98 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
68 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
92 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
53 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
91 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
573 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
82 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
491 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
38 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
69 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
39 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 ...