Questions tagged [archives]

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

0
votes
0answers
8 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
23 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. ...
-2
votes
0answers
34 views

Specific custom post type count of taxanomy archive page

I can show total post count of custom taxonomy in taxonomy archive page. but taxonomy has 2 different custom post types and i want show their count separately according to the type of custom post. i ...
0
votes
0answers
10 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
13 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 ...
-1
votes
0answers
11 views

How can I nofollow the links to post from categories and tags?

For SEO reasons, I want to nofollow the links to post from categories and tags pages. How can I do it?
0
votes
1answer
19 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
14 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
37 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
29 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
10 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
24 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
24 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
15 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
14 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
21 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
40 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
32 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
22 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
41 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
17 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
27 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
44 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
19 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
27 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
192 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
14 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
26 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
149 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
45 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
38 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
17 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
18 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
29 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 ...
0
votes
0answers
34 views

How to add excerpt and read more button to category archive page

I am finding it hard to add excerpt and read more button to my category archive page
0
votes
0answers
24 views

google index an Post type page I do not want

I created a Custom Post type for my client's site, and everything works fine. but, I found that google index an archive page that I do not want. here is the code of my Post Type: $...
0
votes
1answer
25 views

How to prevent archiving and search engine caching in a free Wordpress blog?

I don't like to have my free Wordpress blog cached by search engines or even worse, archived by the known archiving websites and services like The Wayback Machine. How can I do that?
0
votes
0answers
27 views

Custom archive paged head title

My website is in hebrew and when im in a paged archive the title is "archive title" page 2 of 4. How can i add the title only in archives that are in a page 2 or higher? I am using Yoast SEO. And its ...
0
votes
0answers
17 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
77 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
32 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-...