Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [archives]

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

0
votes
0answers
8 views

Need a Plugin for Sorting Specific Category Posts within a Static Page

I am NOT a strong PHP coder and mainly create sites using plugins and custom CSS which I am strong at. I have a page listing posts from a specific category. The page is built using Elementor Page ...
0
votes
1answer
23 views

multiple custom post type on category page

Is it possible to have multiple custom post types appear on a category page? For example, I have a category Animals and I can assign it to both these custom post types: dog, cat Both cpts use a ...
0
votes
0answers
17 views

How to combine two different taxonomies into one archive page

I'm developing a site with a need to create archive pages that combine two different taxonomies and have been having a hard time narrowing in on a working solution. Below is an example of what we are ...
0
votes
0answers
28 views

Turning archive templates to a page template maintaining the slug

I used to have an archive-rooms.php (as page-rooms.php) template to list them all This had few problems: No title page No way to synch menu item with title so: 1) I duplicated the archive-...
0
votes
0answers
13 views

Hide posts from all posts lists [duplicate]

I just start a new blog, and I want to import all my old posts. But I want to list them in a separate page (named 'Archive') and not show them in the main page, 'Recent posts', most commented and so. ...
0
votes
0answers
11 views

Change <title> tag Based on Current H1 Title in Archive Page (Using Yoast)

So basically I have custom code for my archive title, which goes like this: <?php // get the currently queried taxonomy term, for use later in the template file $kendaraan = get_query_var('...
0
votes
0answers
16 views

My archives page won't sort posts by month

I'm trying to make my own theme and I've created an archive template that works fairly well. The template shows all posts, but the problem is that all posts will show if I go to /2018/11/ (posts were ...
0
votes
2answers
29 views

How to Completely Remove Archive Title a.k.a the_archive_title?

I want to remove it COMPLETELY. Not only the label "Archive: " but EVERYTHING. It should not appear. I've been looking for the solution for hours to no avail. Please help. Thank you!
0
votes
1answer
34 views

Change Title Based on Taxonomy Filter in archive-{cpt}.php

So I have page in Custom Post Type RENTAL with following custom taxonomies: Merk -- with terms: Honda, Daihatsu, Toyota, etc Kendaraan -- with parent terms: Mobil, Bus, Motor; & child terms: MPV, ...
0
votes
0answers
5 views

How to automatically add category to front page, and when clicked, display custom post type posts of that category

I have a bit of a problem, been looking at various answers and still can't quite get it. Here's the problem: My client would like to be able to create new categories for her Custom Post Type of '...
0
votes
0answers
12 views

Archive widget not working for custom structure permalinks

I am using the following Custom Structure for permalinks on my WordPress site: /%day%/%monthnum%/%year%/%postname%/ When I click the "Month Year" link generated by the Archive widget, I get shown a "...
0
votes
1answer
22 views

Display all posts from specific category

Problem: I'm trying to display all posts from a specific category named 'Culture' (slug: culture) in my website. However, I'm always getting an empty field. My Attempt: I've tried to use the same ...
0
votes
0answers
17 views

dont display the corect month and year at archive page of a wordpress blog site

' . get_the_date() . '' ); elseif ( is_month() ) : printf( __( 'Monthly Archives: %s', 'ribosome' ), '' . get_the_date( _x( 'F Y', 'monthly archives date ...
0
votes
0answers
17 views

Archive Page - no content when logged out

I have the problem, that when I am logged in into admin, I can see the content of my archived pages. When I'm logged out - the page is totally empty.... Anyone has an idea why? Greets
1
vote
1answer
58 views

Wordpress showing archive.php instead page

I have a problem with same name (slug) for category and page and wordpress is showing archive.php instead page custom template. Permalinks settings for category is . and i want to stay this way but ...
0
votes
0answers
12 views

Custom post type categories giving 404

I have a custom post type called "News" which looks like this: /** * Register "News" custom post type */ function news_custom_post_type() { $labels = array( 'name' =&...
0
votes
0answers
11 views

How Can Create Separate Tender Archive Section and Current Tender Section in WordPress

I'm trying to create a WordPress Archive section for Tender, and I'm having a little difficulty with creating an easily accessible archives page. How Can Create separate Tender Archive Section and ...
0
votes
1answer
18 views

Set function to skip Buddypress profile page/tab

I am using the following code, within my function.php file, to set the author links to point to the buddypress profile pages for each author, rather than the default author archive pages they'd ...
0
votes
1answer
29 views

Removing CPT slug from URL results in 404 error for archive page

I have created a CPT with rewrite rules as follows: "rewrite" => array( "slug" => "/", "with_front" => false ), In the functions.php, I have added the following code: function ...
0
votes
2answers
33 views

Adding pagination to a custom archive template

I'm trying to add pagination to my archive template. If I use the same code as on my main blog template it doesn't filter results based on the tag in the URL, instead it simply shows all posts. ...
1
vote
2answers
113 views

Display posts from #6 to #20 on archive page

My client shows his 5 most recent posts (excerpts) on the homepage followed by a "read more" link. On archive page he does not want to display the 5 most recent post again but posts from #6 to #20. ...
0
votes
1answer
40 views

Archive URL returns 404 error for Custom Post Type

Having issues with a custom post type that returns a 404 error when I visit the archive page. get_post_type_archive_link() for the post type (called project_profiles) returns the URL mysite.com/...
0
votes
1answer
17 views

Changing author links on homepage to buddypress profiles - without affecting ability to link to author archive throughout the site

I've set all author links to head to the author's buddypress profile rather than the author archive page. I've done this through my child theme's function.php file. *add_filter( 'author_link', '...
0
votes
0answers
9 views

Order by 3 custom fields in archive Woocomerce list

I'm trying to order the products in woocomerce archives pages by 3 custom fieds, my code is: add_action( 'woocommerce_product_query', 'imcar_custom_product_query' ); function ...
0
votes
0answers
119 views

How to customize template for custom post type archive page using genesis

I have created a custom post type, and an archive template called archive-casestudy.php which simply contains: <?php genesis(); ?> Presently when I load this archive page I see the title of ...
0
votes
1answer
25 views

Display archives based in post_format

I'm working in a project that needs to use post_formats. First of all, is there any way of create a new post format? The only thing I've found was to overwrite an existing one. In addition, they're ...
0
votes
0answers
26 views

Exclude taxonomy term in archives, but make it readable on its own

Background: Making an event site that automatically hides expired events. Using WP-Cron and some tinkering, I've made it so my CPT "event" automaticly has an "Active" term in the taxonomy "Status", ...
0
votes
0answers
16 views

Can we set Wordpress archive with 2 month

How to display the archive widget drop down list as jan- Feb, Mar-Apr like that or 15th Oct - 15th Dec, 15th Dec- 15th Feb etc?
0
votes
2answers
34 views

Meta Box: display single image on an archive-template

I'm trying to get the url of an image from a MetaBox (plugin) filed on an archive-page. <?php if ( rwmb_meta( 'field-id' ) ) { // Get images $img_srcset_large = ...
0
votes
0answers
15 views

Show archives as a drop-down in the main navigation menu

I am using the Independent Publisher: 2 theme. It looks like this in action. I would like to be able to access my blog archives by clicking on the navigation menu, as a drop-down. In other words, I ...
0
votes
1answer
23 views

Order archive custom posts by taxonomy term [duplicate]

I cant change the way things are, so I cant use custom meta... I have terms that are years and I have to display the archive in order (newest to oldest-in terms, not published date) For example the ...
0
votes
2answers
26 views

Custom Post type & Taxonomy 404

I've created a custom post type & taxonomy, however when I go to my taxonomy page it throws a 404 error and I can't understand why. // Register Custom Post Type function portfolio_post_type() { ...
0
votes
1answer
26 views

What php gets called for home_url/somepage URL?

This is going to sound quite stupid for most experts but for a beginner it's not clear what .php code gets called when visiting a home_url/year/month URL. For example, domain.com/2018/05 shows all ...
1
vote
1answer
26 views

Filter post by clickable year [duplicate]

How can I get all the year of posts in archive.php and put it on the list? 2016 | 2017 | 2018 And after clicking any year, It will show the posts of the selected year www.example.com/post_type/2018....
0
votes
1answer
35 views

Create simple columned archive page

I'm attempting to create a custom archive page ordered in breakable columns (depending on the resolution). Ideally something that is as simple as possible under the hood. So: What would be the best ...
0
votes
1answer
22 views

How to create archive pages for metadata query generated posts (so without taxonomy)?

It is a bit complicated to formulate (or maybe just I'am so tired now), but I trying will be clear: I want creating archive pages for liked posts by users. This will be similar to author pages, like: ...
1
vote
2answers
871 views

Use is_product_category() properly

I have two product category MULTILINGUAL DIGITAL MARKETING (ID 75) INTERNATIONAL SALES CHANNELS (ID 107) I want to run some code via if condition for these two category only. I tried using this ...
0
votes
0answers
61 views

Template issue for woocommerce category?

I have a list of categories as parent category and also a list of child categories under the parent. When I am clicking the category, I am being redirected towards content-product.php template instead ...
1
vote
1answer
72 views

How to show the archive / post type description on Single templates

I have a Custom Post Type with an archive description. Both the following functions return said description from the archive-cpt.php template, as expected: the_archive_description() echo ...
0
votes
1answer
59 views

wp_get_archives doesn't take effect from css or html

I'll try to keep it short. So basically I'm trying to add custom item to my menu which in this case is the archive dropdown list with months desc. Everything looks nice and clean but the output of ....
0
votes
1answer
42 views

How to tell if a page has subpages for Custom Post Types

I would like to show a page depending on whether it has a subpage or not. That is, if you have subpages, do not display the subpages, only the parent page to which it belongs. Something like this: ...
-1
votes
1answer
24 views

Woocommerce shows empty columns [closed]

In my wordpress site, i installed woocommerce. In archieve categories and shop page the products not setting correctly. They looks like: XXX X XX But I want to display correctly in the grid: ...
0
votes
0answers
27 views

How to create multiple parameter archive pages (i.e. something like /$post_type/$taxonomy/$term/)?

Basically, I have three custom post types: videos, news, & reports and a couple custom taxonomies: region & blog — that I'd like to create "sub-archives" for, using the following structure: /$...
1
vote
0answers
69 views

add_rewrite_endpoint returns 404 on archives

My endpoint works on all kind of single pages and homepage, but it returns 404 in archive pages, either categories or custom taxonomes. I have reflushed rewrites but I don't get it work. This is my ...
1
vote
1answer
25 views

How to get “last year from [spec year] that has posts”?

I have a year archive like this: ◀ 2010 - - - - - - - - - - - 2011 - - - - - - - - - - - 2012 ► And first I had the idea that a year with no posts would be just the same page with the ...
0
votes
0answers
11 views

How to stay on date.php archive page even if no posts? [duplicate]

I use WordPress's date.php file for year archive. And on that age I first show the current year and then you can click prev or next for previous or next year. But if the next or previous year doesn't ...
0
votes
0answers
47 views

Archiving Posts and/or Optimizing wp_posts

I'm seeing poor performance from large post queries. This is in my mysql slow.log: # Query_time: 0.896177 Lock_time: 0.000083 Rows_sent: 1 Rows_examined: 105329 SET timestamp=1527092770; SELECT ...
0
votes
1answer
25 views

Make category archives page in menu non-clickable

I have a website with 2 categories in the menu. The first one is "Blog", which I would like to keep when you click on it. The second one is "Veel bezocht" and there are a few posts linked to this ...
1
vote
1answer
16 views

List taxonomies according to whether this post is in another taxonomy in taxonomy archive

I have two taxonomies for categories of custom post type 'items'; 'type' and 'group'. They are not exclusive so one hierarchical taxonomy won't work although to an extent, as you'll see, they are ...
0
votes
0answers
845 views

How to remove “archive” in title?

How to remove "archive" in title? The category page is "technology", I have no idea why there is a word "archive" behind it.