Questions tagged [archives]

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

307 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0 votes
0 answers
37 views

Redirect to custom post if custom archive page has just one result?

So i have made a Custom Post Type called cars and 4 taxonomies that i use to make/edit the cars pages. I have a search&filter pro plug-in to help me sort my pages by the 4 taxonomies assigned. It ...
Lixicus's user avatar
0 votes
0 answers
30 views

Posts are not displaying on their category and tag page

I created a post and assigned it a category and tag also. The post is displaying on the main post page. But the problem is when I go to the specific category page the post is not showing. For ...
Mohammed Akash's user avatar
0 votes
0 answers
12 views

I want to be able to access archives to see how recently a post has been read: How can I do that?

Is there a way to access archives to see which posts have been read recently?
sara wright's user avatar
0 votes
0 answers
30 views

An archive widget, coming from nowhere on my posts and pages

Pretty much, it looks like this: And I really do not know where the "Acrhive" is coming from. This is how the Widget page looks like (either this way or the archive is set on the bottom): obviously ...
Vityata's user avatar
  • 103
0 votes
1 answer
42 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 ...
Mark's user avatar
  • 101
0 votes
1 answer
111 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 ...
Luis's user avatar
  • 1
0 votes
1 answer
279 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 ...
Chinmay Ramraika's user avatar
0 votes
0 answers
288 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 ...
user avatar
0 votes
1 answer
705 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 ...
jongoeson's user avatar
0 votes
0 answers
2k 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 ...
user171021's user avatar
0 votes
0 answers
145 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. ...
Maximall az Pulsuz sayt yarat's user avatar
0 votes
0 answers
252 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 ...
Benjamin Franklin's user avatar
0 votes
1 answer
100 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 ...
Rajika Nanayakkara's user avatar
0 votes
1 answer
127 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 ...
lomokev's user avatar
  • 173
0 votes
2 answers
602 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 = ...
Jerry's user avatar
  • 1
0 votes
0 answers
25 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 ...
A'dii Sunlay's user avatar
0 votes
2 answers
39 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' , '...
RITIK's user avatar
  • 101
0 votes
0 answers
89 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 ...
Aparna Mathew's user avatar
0 votes
0 answers
163 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 ('...
Reza Mas's user avatar
0 votes
0 answers
79 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
Chisco687's user avatar
0 votes
0 answers
44 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: $...
Younes's user avatar
  • 11
0 votes
1 answer
123 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?
Adrian Machin's user avatar
0 votes
0 answers
40 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-...
Toni Michel Caubet's user avatar
0 votes
0 answers
176 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 ...
janlindso's user avatar
  • 133
0 votes
1 answer
286 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 ...
Maria Herrera's user avatar
0 votes
0 answers
258 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' =&...
Sam's user avatar
  • 2,136
0 votes
1 answer
77 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', '...
Haazna's user avatar
  • 33
0 votes
1 answer
225 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 ...
Agustín Moglie's user avatar
0 votes
2 answers
470 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 = ...
Luke's user avatar
  • 59
0 votes
0 answers
30 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 ...
Ebony Maw's user avatar
  • 101
0 votes
1 answer
144 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: ...
Marifer Villarroel's user avatar
0 votes
1 answer
122 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 ...
Dominique van West's user avatar
0 votes
2 answers
1k views

show image gallery in archives or category page

i want to show image gallery in archives.php or category.php. The featured image and text content is showing but not image gallery. Below is the code inside category.php. I have tested to show one ...
Phyo's user avatar
  • 1
0 votes
1 answer
153 views

Adding Custom Post Types to category/tag/author archives breaks header content

I'm using the following code in functions.php to add Custom Post Type content to my Category, Tag and Author archives: // Add New Custom Post Types to Archives function rtt_add_cpts_to_archives( $...
jongoeson's user avatar
0 votes
0 answers
383 views

How to create a completely functioning separate archive for posts from only 1 or 2 specific categories

I can't seem to find a complete way of resolving my issue. I've found parts, but it seems I'm the only one out there who has the issue I do. I have a web working with WP, and recently I've been asked ...
QuestionerNo7's user avatar
0 votes
0 answers
22 views

Archive only for /year/month, not terms

I want archive template to be used when I visit /year/month, for example /2018/04. But I don't want the archive template to be used for terms. For example: /tag/news or /countries/sweden. How do I ...
Peter Westerlund's user avatar
0 votes
1 answer
582 views

Customizing the output of the archive and category widget without altering the original behavior of the widget

The current unmodified output looks like this → <div id="archives-4" class="widget widget_archive"> <h2 class="h2b">Archives</h2> <ul> <li><a ...
WordCent's user avatar
  • 1,867
0 votes
1 answer
53 views

view a list of 3 future post, from the nearest to the most far

for my club's website I have a list of upcoming events. Every event is set with the date it will take place, so I'll have ordered it in archive. I already prepared the site fo view future posts via ...
resunoiz's user avatar
0 votes
1 answer
65 views

All tag/category/custom taxonomy archives 404

My issue is that mysite.com/tag and mysite.com/tags returns 404 errors. But if I have an eyeteeth tag then mysite.com/tags/eyeteeth returns posts with that tag. This also holds true for categories, ...
Eye Teeth's user avatar
0 votes
1 answer
39 views

Custom Archive - hide posts until a search is made?

I have a Custom Post Type with an Archive page. I have a filter form on the page so the user can select some options and then find matching results. How can I stop posts being displayed (using the ...
Paul Canning's user avatar
0 votes
0 answers
1k views

Featured image on archive page based on post type

Is it possible to use a custom featured image on the archive page? I created a secondary image space using the code below and would like the featured image to pull from that source vs the default '...
Ken's user avatar
  • 101
0 votes
1 answer
177 views

next and previous category name and link parent only wordpress in archive page

how get next and previous category name and link parent only wordpress in archive page I tried a lot but worked by fetching an ID and adding 1 or losing 1 But this is causing my mistakes
أسامة محمد's user avatar
0 votes
1 answer
80 views

The page or ad listing you are trying to reach no longer exists or has expired

I have this URL here https://www.gundogworld.co.uk/judge/. I am wishing for this to be a simple archive page. On this page, it has the body class class="archive post-type-archive post-type-archive-...
martin's user avatar
  • 1
0 votes
0 answers
105 views

How to remove or hide archive page?

How can I remove or hide this type of result after searching on my website This page shows a full page product after searching https://vipfash.com/?s=calvin+klein Is this archive page ? Thanks
Leurent's user avatar
  • 177
0 votes
0 answers
426 views

How can i remove post type archive URL?

I am trying to disable portfolio archive link form a post type. Beacuse my most important page shares the same url with my archive. And its wont let my actual page link working. How can i fix this? ...
Sinan's user avatar
  • 45
0 votes
1 answer
163 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 : ...
nrdev's user avatar
  • 1
0 votes
2 answers
113 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 ...
kilobyte's user avatar
0 votes
1 answer
623 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/...
Arjen de Jong's user avatar
0 votes
1 answer
37 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 ...
Peter Westerlund's user avatar
0 votes
1 answer
263 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) ...
Slam's user avatar
  • 343

1 2 3
4
5
7