The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [archives]

A page showing more than one post in the main loop.

Filter by
Sorted by
Tagged with
0
votes
1answer
458 views

Remove plugin's custom post type archive page and single pages [closed]

The Problem Hi I am using the plugin: "Process Steps Template Designer", I am using the shortcode to add the vertical process (sort of timeline) to my page, the problem is the text get's cut off ...
0
votes
1answer
95 views

How to hide specific post type from archive?

Assume there is a post type called profilepost that I wanna hide from all kinds of archive. (but not changing the post status to private) I tried to get all post ID that belongs to this post type. The ...
1
vote
0answers
292 views

Create archive page for woocommerce attribute

I have a WooCommerce store with a selection of products. I have an attribute for brand. For some reason if I go to https://[my-domain]/brand I get a 404 page. I have flushed the permalink rewrites ...
0
votes
1answer
127 views

Custom post type URL structure with site.com/custom_taxonomy_slug/post_name

I'm quite new to wordpress and I'm struggling to adjust the URL structure to my needs. I work with a theme that provides a plugin for a custom portfolio post type along with custom taxonomies : ...
0
votes
2answers
449 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
3answers
284 views

Can't access private custom posttype single- or archives-page

I have created a custom posttype labeled 'Richards' using a site-specific plugin with the following code. function add_richards_posttype() { $labels = array( 'name' => ...
0
votes
2answers
88 views

Taxinomy slug as var in parent archive page, without having a specific taxinomy page

I'm not exactly sure of the best way to ask what I am trying to achieve, so I'm going to describe it here. If someone can identify a more succinct way to ask this, or if it's been answered in a ...
0
votes
1answer
347 views

Hierarchical taxonomies in permalink cause 404 for sub term archive

I've got a custom post type with hierarchical taxonomies. The permalink structure is as follows: www.mysite.com/post_type/taxonomy_term -> works (tax archive page) www.mysite.com/post_type/...
1
vote
2answers
316 views

Display CPT description on archive.php pages for all CPT

i'd like to show the CPT description on the archive.php page but it'd like to do it dynamically for all CPT's. I mean without specifying the current type myself. Something like the_archive_description ...
4
votes
1answer
1k views

Archive page with multiple taxonomies rewrite

Ok, I've read over pretty much every answer to this question, but my situation must be unique somehow. What I'm attempting to do is straightforward in theory. CPT: resource Tax1: resource_type Tax2:...
0
votes
1answer
124 views

How to add custom text near category/tag title in Wordpress Twenty Fifteen Theme?

You can see the archive.php's title php code on twenty fifteen theme here: <?php the_archive_title( '<h1 class="page-title">', '</h1>' ); ...
1
vote
1answer
161 views

How does WordPress Parent-Child Taxonomy actually Works?

I have created following Taxonomies. Parent Taxonomy = WordPress Child Taxonomy = WordPress Development, WordPress Plugins For a specific post, I have set WordPress Development and WordPress ...
0
votes
1answer
24 views

What method would I use to show an image in between X amount of posts on category archive? [duplicate]

I am trying to output an image in between every XX post shown on the /category/archive pages for every category. Years ago there was a tutorial online of how to do this, but I can't seem to find it ...
0
votes
1answer
30 views

Same page for startpage and archive?

Is it's possible to have the startpage to also serve as an archive page? The startpage has a lot of boxes for other different categories and taxonomies. For example this: <div class="column box ...
1
vote
0answers
147 views

woocommerce custom taxonomy archive shows 404 error

Kind a new to wordpress. Trying to add two new taxonomis to woocommerce: product_color and product_category. The taxonomies are added and I see them under products categories, I even can add them ...
1
vote
1answer
120 views

How do I check if the user is on a taxonomy term parent, child or grandchild page?

I have a custom taxonomy: product_range and it has 3 levels: (1 - Parent) Product (2 - Child) Product Category (3 - Grandchild) Product Sub Category I need to display different content depending ...
1
vote
1answer
37 views

Custom archive.php: retrieve right post categories?

I'm using a child theme where I edit archive.php. When somebody clicks on a post's category, I want the archive page to display all posts which share ALL of the categories of this post at the same ...
0
votes
1answer
6k views

Display custom post type taxonomies as an archive page

Hello I have a custom post type called results. I also created categories for that specific post type using a taxonomy. I'm not sure if I set it up correctly, but the code I have works so I'm sticking ...
2
votes
1answer
264 views

Skip first post on Category Archive

I have created a filter to skip first post of the archive on "podcast" category. Below is the code. add_filter( 'pre_get_posts', 'amd_limit_posts'); function amd_limit_posts($query){ if (...
0
votes
1answer
302 views

How do I display posts of a specific day?

<?php /* AJAX.php */ //ajax call with no privalidges, a user that is not logged can access load-more add_action('wp_ajax_nopriv_japi_load_more','japi_load_more'); add_action('...
0
votes
0answers
104 views

How to share terms between two taxonomies?

I understand that since 4.4 or so, taxonomies no longer share terms. But I have a use-case where I think I need shared terms. For each post, I need two taxonomies: a Topic (unimited terms per post) ...
1
vote
1answer
1k views

Disable single pages and archives and keep preview

TL;DR Does anybody know how I can disable single pages and archives for custom post types while keeping the preview mode? I'm looking for a way to disable the single and archive pages for a custom ...
2
votes
1answer
2k views

Custom template for archive of a custom taxonomy

I've made a custom taxonomy named activities, containing items named local, member, and national: <?php function add_custom_taxonomies() { register_taxonomy('Activities', 'post', array( ...
0
votes
1answer
41 views

How to Create Custom Archive page

I want to create an archive page for my custom post type. My custom post type name is spanish so i have created a page archive-spanish.php but this archive page is not working. default archive ...
0
votes
2answers
1k views

Custom Category Archive Pages

I have a WP installation with 6 categories and I want 3 of them to use a custom Category Archive Page called "category-special.php" (default page is the "category.php"). I found the code below that ...
0
votes
2answers
100 views

Need sql to remove tags from older posts

I've realized the Wordpress Tag Cloud has no weighting for newer posts. I have thousands of old posts that I want to no longer be counted for tagging. So, what I want to do is remove all tags from ...
2
votes
1answer
6k views

Add custom field to the archive page?

Add fields to archive? I'm using Advanced Custom Fields plugin (but it's not relevant as I can also use native WP fields) and want to add custom field to the custom post archive page. The problem ...
1
vote
1answer
843 views

How to filter archives both by category and tag?

I have an archive for each category/tag. Now I want to create a custom archive using the following URL structure: http://example.com/cat1/subcat1/tag/tag1 This should show all posts that have the ...
0
votes
2answers
822 views

Display Date & Author Info on Custom Post Type Archive Page

I have created a custom post type called 'articles' with all the same capabilities as the general post type & I am using the same template to display both archives. The blog page that uses the ...
0
votes
1answer
230 views

How to set up a single product shop with woocommerce? Skipping the product archive

I am looking for a solution to eliminate the shop page which is the product archive for a single product shop. So visiting domain.com/shop should link to the single product page domain.com/shop/...
0
votes
1answer
984 views

Order archive results by post id in custom taxonomy template

My theme's archive template uses this for the loop, <?php if (have_posts()) : while (have_posts()) : the_post(); ?> Seems to be ordered by post title but I need them ordered by the post id. ...
1
vote
1answer
511 views

List category posts alphabetically on archive.php

I have a bunch of categories with sub-categories and sub-sub-categories that I want to list on my archive.php. The titles of the sub-categories are listed on the archive page of its parent category. ...
0
votes
1answer
685 views

Custom archive widget drop down menu

need to display archive drop down as Jan-march 2017, April-June 2017 like that, is that possible
0
votes
1answer
129 views

How can I create a new menu item that links to an archive of a custom post type?

I have a function that programmatically creates menu items in Wordpress. I am able to create menu items to individual pages and posts, but how can I create a menu item for a custom post type archive? ...
0
votes
1answer
230 views

Page redirects to archive

I have a page with a permalink of /news and when i go to that page it redirects me to archive pages. I only want to go my news page and not redirect me to archive. Please help.. thanks
0
votes
0answers
48 views

How to get a terms and posts associated with another term?

The wording of the title is terrible, but I am not sure how else to word it. I have two taxonomies: product_categories and brands. I'm on the page /product-categories/grocery. So the term here is "...
0
votes
0answers
194 views

Display tag links on archive page?

How do I dynamically show a list of all available tags with links to their own archive pages on the top of my customized archive.php page? Basically I have: site.com/cameras and on the top I would ...
1
vote
1answer
42 views

Programatically changing post's permalink when identical post type is published

Is there a way in Wordpress for me to create content for a specific permalink ( mysite.com/current-issue ) that can be updated each month. With each update, the old content's permalink is ...
-1
votes
2answers
42 views

More than one Hierarchical Taxonomy and SEO

I don't know if this is a good question or an incredibly stupid one. But I'll ask anyway. Websites can't have more than one hierarchical taxonomy. It would be an SEO disaster. But still, some may ...
0
votes
1answer
485 views

Link for the page archive for posts, like using custom post types with get_post_type_archive_link

I am trying to get the page to list all my posts (post type = post) in archive. I can do this with custom post types, with get_post_type_archive_link(), but using get_post_type_archive_link('post') ...
0
votes
1answer
306 views

Change the Page Title of the Archive Page for Portfolio Tags

I want to change the title of the archive page to the name of the Tag itself. See screenshot. This is under the Portfolio Taxonomy. Please help.
4
votes
2answers
337 views

$wp_query initiation?

I'm wondering when does WordPress initiate its main query which sets the global $wp_query and enable us to use has_posts() and the_post() functions. If I create a page using archive template, how does ...
2
votes
1answer
56 views

Category and post tag archives do not include posts from custom post type

My custom post type is configured to use category and post_tag taxonomies. The categories and tags display fine in the admin and appear to function as expected. The categories also display fine in the ...
0
votes
1answer
179 views

Custom taxonomy archive slug overwrites static page

I have created a custom post type, with its own custom taxonomy: $productTaxonomyArgs = [ 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, '...
0
votes
2answers
3k views

Adding active/current class to get_terms list

I have a list of terms I'm displaying using "get_terms". Each term is linked so if the user clicks it, they go to the term archive page. <?php $terms = get_terms('category');t echo '<ul>';...
0
votes
1answer
329 views

On my archives page, I can't see my custom post types catergories

I've got a custom post type called 'Work', and one of the categories is called 'formats' Whenever I go to the URL domain.com/archives/category/formats it doesn't show my custom post types, only the ...
0
votes
1answer
82 views

How do I apply a wordpress function to something with no ID inside an archive page?

Inside of an archive page I have multiple boxes. In those boxes I want to add a star rating, but I don't want to create a separate post for each of these boxes, I only want to make the boxes manually. ...
0
votes
1answer
126 views

I broke it! Custom post type archive gets redirected to home

I've created a custom post type ('careers') in a plugin. I can create and view individual career posts just fine, but I can't view the archive page. It just redirects to the home page. The following ...
0
votes
1answer
52 views

custom browse by

I am trying to create my own simple sidebar to display the following: browse by archives (monthly) - it works brows by categories (only main, no subcategories) does not work, misisng ref link. browse ...
1
vote
1answer
1k views

Wordpress categories being called “archives” in google links. How to remove?

We have several category pages. When you find these links on google we noticed that google is adding the name "Archive" to all our category pages. How do i change this? I would like to remove the ...