Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [archives]

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

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

How to remove “Archives” after category name?

There are many similar questions, but none of them have exactly the same issue as I do. Unfortunately the solutions suggested there have not fixed my issue. After selecting a category in my Shop page,...
0
votes
1answer
30 views

How to Sort Products by “Featured” first?

I would like the default sort method of my product archives to display all the featured products first, and then display all the other products as normal. I'm not sure if there is a hook for this or ...
0
votes
1answer
22 views

Yoast SEO settings unavailable in an archive page from wordpress plugin

My Wordpress site has "Seriously Simple Podcasting" plugin installed to serve the podcast feature. This plugin comes with a podcast archive page(click to open) on my site. The page shows correctly ...
0
votes
1answer
28 views

Custom Wordpress theme not displaying posts from category

I am creating a custom Wordpress theme and as far as I can remember Wordpress is supposed to do the heavy lifting for filtering of post types by their category, author, etc. on it's own. This is just ...
0
votes
0answers
22 views

Display products with unique attribute value on product archive page woocommerce

We have 40000+ products on our site and have a custom product archive page for manufacturers. Each product per manufacturer has an attribute 'pa_series' that they belong to. Some series have 100's of ...
0
votes
1answer
35 views

Pagination not working for archive

The query works for the default blog and pages but not for custom post archives. Did I miss something? $paged_bottom = (get_query_var('paged')) ? absint(get_query_var('paged')) : 1; $...
0
votes
1answer
32 views

Archive Widget - Count only parent posts

I'm currently using a filter applied to the Archive Widget. It's successfully filtering posts from the specific category (26) but now I also want to filter only PARENT posts, in order to count only ...
0
votes
1answer
21 views

About title on a page

I would like to know how can I change the title of my page to be just "FinanzasYa" instead of "Category ArchiveFinanzasYa"
1
vote
0answers
13 views

Category archive rewrite rule to include category/subcategory?

I'd like to have my category archive (category.php) accessible using via a url structure like: mysite.com/mycategory/mysubcategory For example, I've got "health" as a category and "smoking" as its ...
0
votes
2answers
21 views

how to pass args for archive.php query?

I am trying to pass args to archive.php so that I can order the posts, set the number of posts, etc.. but the query is done like this <?php if (have_posts()): ?> <?php while (have_posts())...
1
vote
1answer
21 views

When i try to open archive pages i get a 404 error

i do not create any new CPT, simply want to open WP standard archive pages like category (eg. https://museosangennaro.it/category/eventi), but when i try to do that i got a 404 error. Can you help me?...
0
votes
1answer
23 views

Creating an archive page or simple template to list all values of a custom field of specific post type listing

I have a custom post type named 'lawyer' and it contains various custom fields. two of the custom fields are 'state' and 'city'. i want to create a archive page or simple page(anyone will do) which ...
0
votes
0answers
18 views

Possible to order archive by selected post IDs, followed by regular order with WP_Query

I can run an SQL query like ORDER BY FIELD( id, 3, 2, 1, 4 ), title and return a list of posts starting with my ids 3,2,1,4 and the continuing with the rest of a query, bringing back all remaining ...
0
votes
0answers
23 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
31 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
38 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
29 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
55 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
48 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
17 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
33 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
14 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
18 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
22 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
23 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
46 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
32 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
14 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
29 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
43 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
19 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
21 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
17 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
27 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
101 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
34 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
33 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
29 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
87 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
33 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
47 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
21 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 ...