The tag has no usage guidance.

learn more… | top users | synonyms

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 ...
0
votes
0answers
20 views

Taxonomy archive: Query all posts first, and then group by taxonomy term?

I have two taxonomies: 'season' and 'style'. On my 'season' archive template, the following query groups all the 'season' posts by their 'style' term. This works great. But the problem is that I ...
8
votes
2answers
91 views

How To Create A Paginated List Of All Categories On My Site?

I want to display an archive page with pagination that lists all the categories on my site, and each link goes to that particular category archive page. So this would be like an archive page of ...
0
votes
1answer
29 views

CPT with its own category and tag url

I am developing a wordpress site where multiple CPT will used for top level segregation. Each CPT must have its won category and tag base. Also thew should have their own URLS to display only related ...
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
1answer
29 views

How can I change archive.php posts display?

I would like to change archives.php post listing as follows. Whenever clicked on certain link in archives select drop down box, archive page should list posts from May - Dec of that year, plus Jan - ...
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 ...
2
votes
1answer
64 views

Double count view in archive.php

I'm having a hard time using this snippet I'm getting double views each time the post is queried. This is in my functions.php file: function getPostViews($postID){ $count_key = 'post_views_count';...
0
votes
0answers
35 views

Hierarchical permalink for taxonomy archives

Hi I have a custom post type "book" and a taxonomy "authors". Currently taxonomy archive permalink works as: localhost/book/child-author-term and localhost/book/parent-author-term No problem if ...
0
votes
2answers
33 views

Create a custom page URL

I have and archives.php file developed which I want the user to be able to access. How can I register a new page so that when a user types mysite.com/archives he goes to this page?
0
votes
1answer
110 views

Custom post type and taxonomy permalinks - Structure

Been trying to get a nest of custom post type and taxonomy working (even took a look here) but couldn't get it working 100%. Here is the thing, I created a custom post type texturas_temp and a custom ...
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
1answer
29 views

Multiple archives for cpt, taxonomies, terms

I have a CPT "corso" I have more taxonomy for this CPT (argomento1, argomento2, ...) I've terms on them. Example: Corsi -argomento1 --mat ---post1 --geometry ---post2 -argomento2 --grammar ---...
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
42 views

post_class() and the_ID spontaneously fail

I have a custom archive.php template in the theme I'm working on which seems to be misbehaving. Hopefully someone can give me some idea of what might be going wrong. My archive.php template loads one ...
0
votes
0answers
86 views

Category in custom post type

What is the best practice to categorize CPTs in wordpress? Should one use custom taxonomies, or is it possible to use default category taxonomy? Consider having a CPT called news, is that ok to use ...
0
votes
1answer
71 views

Get Non-Paginated Index of Post in Paginated Query

I want to number "product" post types according to their position in their archive. Currently, I have tried to do this by creating a counter variable $count and incrementing it in the loop in my ...
0
votes
2answers
46 views

Limiting the Archive page to posts posted by particular author

I am on Archive Page of a custom post type gallery. I have introduced custom permalink variable - author_id. Lets say i get the permalink variable in $perm_author_id. I want to compare $...
0
votes
0answers
35 views

Custom Taxonomy Archive Page - Organize by Category

I'm trying to develop an archive page for a custom taxonomy that displays posts organized under categories. The template for the archive page is pretty basic right now: <?php get_header(); ?> ...
0
votes
1answer
164 views

Get meta value when the page is a blog archive

I'm using custom metaboxes on my pages. For example: header icon. I created a page for the news on my site. I selected it as a blog archive page under Settings->Reading page. Unfortunately I can't ...
0
votes
1answer
2k views

WooCommerce Link to Product Category

I'm creating a template for archive-product.php page in WooCommerce. I would like to have 3 boxes and link each to a different product category. How do I get dynamic link to each product category ...
0
votes
0answers
125 views

Modify category archive page loop on functions.php

I was able to modify the query on the category archive page using global $wp_query; $args = array_merge( $wp_query->query_vars, array( 'tax_query' => array( array( '...
3
votes
0answers
201 views

Custom Post Type Settings page, choose page to display archive

So, I followed the accepted answer of this post Possible to add another setting to 'Front page displays' setting for Custom Post Type but didn't entirely work, had to compare against the ...
1
vote
1answer
87 views

Archive slider for CPT

I have a custom post type and archive page. I want to be able to use the default twentyfourteen theme slider so that the archive-cpt.php page calls the js and displays a slider only for the CPT. I ...
0
votes
1answer
994 views

Get current title of archive.php

I want to get current title at file archive.php My code : if ( is_category() ){ echo "CATEGORY"; } else if( is_tag() ){ echo "TAGS"; } else if( is_author() ){ echo "AUTHOR"; } else ...
0
votes
1answer
184 views

Can't replace the default sidebar with a custom sidebar on Custom Post Type in Genesis

I have an archive template ("archive-reviews.php") for a Custom Post Type I have created. I'd like to replace the default archive sidebar with a different one that I have created using the Genesis ...
0
votes
0answers
114 views

How to set number of posts to display in archive

I am trying to add a line or two of code to what I am using to call posts to my archive pages. I've tried a lot of things, but because I'm using a piece of code that is a little irregular, ...
1
vote
1answer
148 views

How to test pagination? [closed]

I've been building a theme from scratch so writing everything from nothing and every place I go online which teaches me how to implement pagination are mostly showing ways to make the standard ...
0
votes
1answer
43 views

Redirect or Prevent Viewing of Custom Taxonomy's Archives?

I've contacted the theme developer but never got a response back... I'm also curious to see if anyone else has done this with any theme. To give you a live example: http://demo.powerthemes.club/...
0
votes
1answer
91 views

How to create a custom template for custom taxonomy wp-tag-cloud?

I created a custom taxonomy for "Course Topics." Using the wp_tag_cloud I am able to create a custom cloud for this custom taxonomy. When you click on one of the terms in the cloud, it takes you to a ...
0
votes
1answer
279 views

Pagination problems with multiple custom post type archive pages

I'm at the end of my tether now. Really need some help! Here's the setup... I have 2 custom post types in my functions.php: // Register the events post type function events() { $labels = array( ...
0
votes
0answers
212 views

Permalink Rewrite with Archive - Archive gets 404

I have a custom post type, "toys", with a custom taxonomy, "toy_series". I wanted to get the custom taxonomy in the permalink: domain/toys/toy_series/toy-name I got that working just fine by ...
2
votes
1answer
1k views

Display only posts from referred category on date archive page

I am using wp_get_archive() in category.php. If I am on page of category=2 it should show my archives of only that category. However it is for all the categories. Following is the code for my ...
2
votes
1answer
228 views

How do I change the sql query for wp_get_archive()

I am using wp_get_archive() in category.php. If I am on page of category=2 it should show my archives of only that category. However it is for all the categories. So how can I change the query for ...
0
votes
2answers
53 views

How best to create a variation of an archive template work?

I'm still quite new to Wordpress - after a pointer or two. I've created a archive page for a custom post type of 'property'. This is set-up, working from an admin point of view, and I have a listing/...
0
votes
1answer
174 views

How to assign custom post template to its custom taxonomy terms

I have created a custom post type 'interview' and also created custom taxonomy 'interview_category' for the interview custom post type, that custom taxonomy have terms like students, teachers, ...
0
votes
1answer
30 views

WordPress Archives Cause Looping

I am attempting to create an archives page that would have links to authors, categories, tags, etc. I would like it so that when the author, for example, is clicked, all their posts are displayed. ...
0
votes
0answers
105 views

Page Templates Used in Custom Post Type

The same question was asked here with no real response. They claim it's not possible but I have used plugins that accomplish this. In WordPress I am having a problem figuring out how to use the ...
0
votes
1answer
85 views

Highlight archive link on single.php

exist some chance to highlight archive link in classic wp archive widget on single.php template? I have the same template for archive.php and single.php where I call <?php wp_custom_archive(); ?&...
2
votes
1answer
553 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
144 views

Ascending order of yearly archives [closed]

Hey there, I stumbled upon this question but I can't seem to contact the author, because I'm still too new here. I'm using this snippet on my archives.php page to display my posts sorted by years. ...
0
votes
1answer
149 views

Custom post type permalink uses archive page to display posts

I can't figure out why my custom post type page template uses the archive page to display posts. I'm pretty sure I have the right files. These are the important files, regarding this issue, in my root ...
0
votes
1answer
116 views

Display page of custom posts?

I have a custom post type, "design_asset". I am displaying them on a page template, with the loop <?php rewind_posts(); $paged = ( get_query_var( 'paged' ) ) ? get_query_var('paged') : 1; $args = ...
0
votes
1answer
712 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
1answer
334 views

How to display custom post types AND regular posts separately on a shared taxonomy archive?

I've looked over numerous questions and answers on problems somewhat related to this but can't seem to find the same situation or solution. I have a custom taxonomy that needs to have an archive page ...
0
votes
1answer
536 views

Pagination doesn't function properly for archive of a custom post type set as the front page

I created a similar question about an hour ago but since then I feel that I've changed things enough so that if someone viewed it for the first time, it'd just be a confusing mess. So I am opening up ...
0
votes
1answer
2k views

How to Fix an Archive.php That Displays All Posts?

I am currently working on developing my first large-scale WordPress powered site, and I have run into a major problem in my archive.php file. It loads all posts, rather than the categories/tags that I ...