Questions tagged [archives]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
19 views

How to make archive of categories subcategories for custom post pages that distinguish between CPT

I have a problem I have 4 different custom post types readymade_public readymade_private collections_public collections_private And the structure is something like this is going to work ...
0
votes
0answers
25 views

Overriding the template files using a plugin for all themes

I believe these are the common filters to use when overriding a template template_include single_template page_template archive_template The works but it seem that they are theme depended. I am ...
0
votes
0answers
12 views

Author archive page by category [duplicate]

I might have a simple question, but couldn't find anything on the web.. I want to create an author archive page by category. For example I have 2 categories: Apple Banana The Author archive page ...
0
votes
0answers
15 views

Can I Permalink to all posts older than specific year instead of just posts from specific year?

I need add a link in a menu that points to a page with all posts older than 2016 , by default if i link to myblog.com/2016 it will show the archive for that specific year, but I want a link to show ...
0
votes
1answer
34 views

Orderby event date (if it exists) or post date (if it doesn't) - how to reorder posts based on meta value OR date

I need a way to sort the posts on my tag and category archives according to the event date (if it exists) OR post date (if it doesn't). I have a combined archive for events and posts, but want to ...
1
vote
1answer
25 views

CPT Archive with core Category

I have a custom post type of news_archive and they are using WordPress Categories. I would like to get some archive pages for these categories with only the CPTs and not core Posts. I managed to come ...
0
votes
1answer
52 views

get_the_post_thumbnail() produces different HTML on same arguments

I am trying to display the featured image of the first post in the respective archive of the tag page. The template I am using is twentyseventeen. I already see the image by inserting the following ...
0
votes
0answers
26 views

How Can I Display the Category Description in a Theme with no Category.php or Archive.php?

I'm trying to display the category description on category pages below the title (category name). The challenge is that my theme is based on _s and doesn't have category.php or archive.php files ...
-1
votes
1answer
22 views

Create page like custom post type list in Wordpress

I would like to know if I can have a page in WP that works like archive.php for my custom post type. I would like that it works like when in Settings -> Reading I choose an static page like Posts ...
0
votes
0answers
14 views

Display archive posts from specific category on custom template page

I want to show yearly archives based on categories. But it shows all archives when I click on specific category. Can anyone help me please.
0
votes
0answers
32 views

How to show custom post count in archive page

I want to show custom post count of taxonomies in archive page..not all custom post counts of taxonomy, i just want to show videos custom post count. because taxonomies have two custom post type. ...
0
votes
0answers
13 views

How can you display archive in grid form for a post type?

I want to upload a bunch of art and comics, and to do so I am using the plugin 'webcomic' Each collection is set as its custom post type, and the archive is presented as a list with thumbnails and ...
0
votes
1answer
17 views

why get_the_post_thumbnail( the_ID()) echos extra post id

I have the following snippet which adds post thumbnails to products on archive page if matches a given product category, which will output the image but echos the the post id as well. How do I ...
0
votes
1answer
20 views

Do not show child pages within a file page

I have a CPT created, in my CPT file page the father pages and daughter pages are shown. Books of science Book 1 Book 2 Books of science fiction Book 1 Book 2 In my case I don't want it to ...
0
votes
0answers
18 views

Duplicate posts on archive page

I am loading posts through ajax and it seems new load produces duplicate posts on archive standard loop. This my code I have tried several methods with $do_not_duplicate but it seems none worked or I ...
1
vote
3answers
40 views

List of the years with posts presented

I need to get a list of the years with posts of given category. Like this: 2008, 2009, 2010, 2012, 2013 (if there were no posts in 2011, it's not included). I try this query, and it works — I get my ...
0
votes
1answer
31 views

Use the custom post type archive for taxonomies?

Im using a archive-cpt.php template page to display all my custom post type posts but now I will be categorizing them in taxonomies. I want to add a dropdown filter navigation that will be populated ...
0
votes
0answers
12 views

Check if there are posts with specific ACF field value in current archive query posts

I developed a custom ACF field archive filter which lets you filter posts with ACF fields - similar to Woocommerce product attribute filters. It loops thru all fields in a field group and echos all ...
0
votes
2answers
27 views

How to have a dynamic slug and rendering the archive-{post_type}.php?

So I have a Custom Post Type named network and Custom Taxonomy name company_category. Everything is all good until I can't render http://localhost/digitalhxstaging/company. Both Company Category and ...
0
votes
1answer
28 views

Filtering posts by archive showing all years

I have set up a WP_Query within my archive.php page. This is so I can do different things such as pagination etc. I also have two drop down filters categories and archive (yearly). When selecting a ...
0
votes
1answer
17 views

Remove “Page” from Category archive

For the moment my site category archive URL show as example.com/blog/category/all/page/2/ I want to remove "page" from slug so it should display as: example.com/blog/category/all/2/ Any tips how I ...
0
votes
0answers
20 views

edit category archive page with different content (text +images)

I am working on wordpress theme and I would like to edit the "listing category" and "region" pages that get automatically created when I add listings for instance: https://www.tourisme-et-sante.fr/...
0
votes
1answer
15 views

Custom post types not showing on the standard Wordpress Category page

I’ve taken over website from another developer and they used a plugin to generate a custom post types. The plugin is no longer maintained and sometimes courses an error 505 when try and load the ...
0
votes
1answer
18 views

Does WP automatically tag posts into the archive?

We have about 700 posts on our WP site and some of the older ones (+5 years) seem to get tagged as "Archived", under the tag "tag". I attached a screenshot of the search result with the same article ...
0
votes
0answers
22 views

Category wise posts wordpress

I want to display post of the category on which I will click on . As I have 2 categories so when I click on Movies category it should show the post under it and when I click on another category it ...
0
votes
1answer
26 views

how to remove pages loading with the archive templates

I have custom post type "project", and it is loading with the template "archive-project". I already have a page "applications" to load "archive-project" So the same page is accessible via both URL's ...
0
votes
1answer
51 views

How to display the_archive_title() and the_archive_description() - “weird” interaction

I've got the following code in my "pagetitle" template partial: <?php the_archive_title( '<h1>', '</h1>' ); the_archive_description( '<span class="archive-description">', '</...
0
votes
2answers
33 views

Tell wordpress to show a single page instead of an archive page

my wordpress site urls like this: https://example.com/?pid=a125a5&lang=en and query of my archive page like this: <?php $the_slug = get_query_var('pid'); if ($the_slug){ if ( $post = ...
0
votes
1answer
18 views

Display post count on archive page in reverse order

I'm displaying some posts and I want each of them to display a post number. The first post being number 1, the most recent post being 10 (let's say there's 10 posts.) I'm currently using <?php ...
0
votes
0answers
26 views

WooCommerce product archive url without value / all values

Is is possible to list all products by a certain attribute without specifying the term value ? Right now, accessing site.com/attribute_name/term_value/ returns as expected. Accessing site.com/...
0
votes
0answers
57 views

Why is my site using index.php instead of archive?

Developing my first custom theme and I started out using an individual page-$slug.php to display a list of each custom post. Have since learned that archive.php is better for this purpose (but I just ...
0
votes
0answers
19 views

Permalink like example.com/taxonomy/post_type/postname

I would like permalink structures like this: example.com/%post_tag%/post_type/postname for posts example.com/%post_tag%/post_type for archive page of post_tag filtered with custom post type archive ...
0
votes
0answers
23 views

blog archives and search issue

this is my first blog, I have no experience so this is conglomerate of code that I found on stackoverflow etc. I want to ask is everything correct? archives and search results are wrong. any ideas ...
3
votes
1answer
29 views

How to show more posts on an archive page?

I'd like to show more posts on my custom archive page, but can't seem to figure out the right way to do it. Currently it displays 10, which is the number set in WP Settings and the number I'd like on ...
0
votes
1answer
45 views

How to get links to previous and next archive page based on tag

I use Extra theme from Elegant themes. One of specific functions of this theme is category layout builder, which creates archives posts based on taxonomy. I have created such layout pages based on ...
0
votes
2answers
20 views

Archive for custom taxonomy

I have a custom post type movies that I have defined in function.php function create_post_type() { register_post_type( 'movies', array( 'supports' => array('title', 'editor' , 'excerpt' , '...
1
vote
0answers
28 views

Archiving by academic year instead of calendar year

I am building a website for a school where teachers can add posts for classwork. The posts are categorised by the class name (e.g Year 1, Year 2, etc). The academic year goes from September to July. I ...
1
vote
2answers
287 views

Custom post type archive sorted and grouped by date in post meta field

I am trying to build an Custom Post Type for showing information about events. The Custom Post Type has name 'Event', with the following meta fields: event_startdate (date in format YYYY-MM-DD) ...
0
votes
1answer
24 views

Archieve.php not loading for custom post type

I have a post with a category of blog . So i came across with this archieve.php , whereby we can edit the layout and content of a custom post type. From what I understand archieve.php contains the ...
1
vote
1answer
15 views

Duplicated posts on category page

So, I have archive.php file with this part of code <div class="column is-full is-three-quarters p-small"> <?php while ( have_posts() ) : the_post(); get_template_part(...
0
votes
1answer
34 views

Custom Post Type archive page listing a 404 or single post

I want to preface this by saying we HAVE tried saving and re-saving the permalinks structure. We are developing a custom theme and have a few custom post types in our theme. An example of one of them ...
0
votes
1answer
48 views

How to hide custom taxonomy archives same way as hiding custom post types?

I'm trying to make it so my custom taxonomy terms don't have archive pages. I achieved something similar for a custom post type using "publicly_queryable' => false". I tried this from the docs inside ...
0
votes
1answer
205 views

Show full post in category archive pages in twenty-nineteen theme

I am using twenty nineteen theme. It shows only the excerpt in the category archive page. I would like to show the full post. I created a child theme and copied the file archive.php to the child ...
0
votes
1answer
53 views

Woocommerce product not appearing in category list page when created programatically [closed]

I am creating a plugin that will filter the products from API to our WordPress site. I did successfully created the product and automatically publish it with category and subcategory in it. http://...
0
votes
0answers
42 views

Display Category yearly wise in wp

How to list the categories yearly wise in template and the taxonomy page of the category should list the posts of the selected year. 2016 2017 2018 Category 1 ...
0
votes
1answer
25 views

Archive: Lists itself

So I have created an archive.php, set everything up, and my archive page works fine. Now I was wondering, of how I should prevent the archive page from listing itself. When accessing the page called ...
0
votes
0answers
20 views

Taxonomy Brand Archive with Product Categories Integration

The following code is inserted in a the taxonomy brand page and it shows all product_cats for a specific brand. <?php $argsproduct = array( 'post_type' => '...
0
votes
1answer
25 views

Where is the content that is outputted by get_the_archive_description()?

I need an intro text to a custom post type archive, so I want to use get_the_archive_description(). Thing is, I can't figure out where in the admin is the text that is gonna be outputted by this ...
0
votes
0answers
34 views

How Can I add show_post_count in get_archives_link?

How can I show archive's post count in an customized html output for archive? //Change Archive List HTML function change_archives_output($link_html, $url, $text, $format, $before, $after) { if ('...
0
votes
0answers
14 views

How to remove Archive title from category using a lune theme? [duplicate]

i am trying to remove the "Archives Category Archive for: "Montage d’un conduit inox" and put only the name of my category instead. I am using a category in my menu and i am using a lune theme. Can ...