Questions tagged [archives]

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

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

Getting a 404 error on auto-generated archive link (in wp widget)

I'm using the wordpress archive widget in my sidebar. The permalinks are set to the format: website.com/year/month/ All of them work except January. I have not set any custom links or changed any ...
0
votes
1answer
35 views

Custom Post Type Archive Page showing as 404

So I have used the CPT plugin to create a custom post type called Works. The slug I have set is proctor-work and I have created a template called archive-proctor-work.php. I cannot get this to show on ...
0
votes
0answers
17 views

Woocommerce loop - remove hidden products

I've regular woocoomerce archive page. Products that should not be shown, are not shown, which is good. Now, the problem is that WooCommerce's default content-product.php template is doing checks like ...
0
votes
1answer
30 views

Callback hooked to post_updated firing on new posts as well

Context: I'm using a plugin that allows me to add author boxes throughout my site (Simple Author Box), while providing an easy way for any user to update their social media links and profile pictures. ...
0
votes
0answers
23 views

Is this so hard to do? Product gallery slider on archive pages [duplicate]

I have tried like 1000 diferent methods and the best thing I got was this: With this code: //* Add gallery thumbs to woocommerce shop page add_action('woocommerce_shop_loop_item_title','...
0
votes
1answer
10 views

Customize URL for specific tags archive

I'm using WooCommerce to create an online shop. Some products are tagged with an "outlet" tag. I'm currently showing them via a menu item linked to the "outlet" product tag archive....
1
vote
1answer
9 views

How to display excerpt post on hamepage and archive pages?

I am showing full posts on my blog's homepage and also in archive pages but the problem is, Now i have posted some long post and i want to show there only excerpt with read more button on hamepage and ...
0
votes
1answer
15 views

Query Nopaging action not having effect

I've got a custom loop function in my child theme, in the templates.php file to loop through specific post types ('listings') and then put it into an array to use into a part of my template. Here's an ...
0
votes
0answers
17 views

Using Custom taxonomy term as permalinks and archives

So I am a little stumped... I have the custom taxonomies: Region and Type. Now what I am trying to accomplish is to make parent Region terms the main permalink for my posts and use also use Region and ...
0
votes
0answers
13 views

Query Terms by Format

Looking to display a list of terms on a post format archive page where those terms have posts in the given format. In essence I want to select all terms in a particular taxonomy where the terms are ...
0
votes
1answer
13 views

how to make wordpress change the title and keep page name?

I want to change the title of my archive page from "category" to "department" to get something like this: Department: Marketing. Where "department" is the archive page ...
0
votes
0answers
15 views

How to remove first 3 posts on an archive page?

I am new to theme development and coding one theme from scratch, I have to build archive page where it will not show/ exclude first 3 posts. I tried below codes but it's showing same post on all the ...
0
votes
0answers
5 views

Not refresh archive month filter

So I'm using wp_get_archives in order to show a list of years, together with months limited to each year (so instead of showing the 12 months for each year it only shows the months once and they work ...
2
votes
1answer
43 views

How to get the latest posting time of archived pages in WordPress?

Is there a way to get the post time of the latest post under the WordPress archive page? I would like to add a feature to the archive page to show the latest time of posts published under that ...
0
votes
1answer
37 views

How do I add custom HTML to the content of an archive page's posts?

I have a plugin with a custom post type for courses. I want to customize the content inside of the archive page's posts and style it. I realize that the archive page is using the_content() to retrieve ...
0
votes
1answer
17 views

How can I show a list of posts using the dynamic selection box?

I want to use the Select Box to make a separate archives by year and month. The list of articles for the year selected in the first selection box is divided into months in the second selection box. ...
0
votes
0answers
12 views

Why does post type-term archive [ <post_type>/<term_name> ] resolve to taxonomy-term archive [ <taxonomy_name>/<term_name> ]?

sorry to ask this but im currently on a 43-tabbed-6-hr search and studying session to make this work but I think i've got some of the things mixed up. Goal: Have separate page for each: [1] domain.com/...
0
votes
0answers
7 views

Add an author bio made in Adanced Custom Fields in the author archive page

so I created an author bio using ACF, I needed it to appear in the archive for that same author. The ACF bio has a similar name at the end of the URL of the author archive. What I want to do is make ...
1
vote
0answers
11 views

Set specific number of columns for top level term on product category archives

I'am a bit desperate about this issue im facing. I have tried so much o code tweaking, asking for help and nobody really could help me, maybe this is the place where some one could at least explain ...
0
votes
1answer
18 views

My page is shown as archive in my site

I've made a real estate website with Wordpress and I'm facing some issues. People register on the website as users, agents and agencies. On the agencies page where all registered agencies show it ...
0
votes
0answers
10 views

error 404 on pagination when modifying a new wp_query argument 'post_per_page'

I'm using WP_Query to generate an archive custom posts type. In the settings of wordpress I have set to 12 the number of posts to see per page. But on this particular archive page I want to see 6 ...
0
votes
1answer
22 views

Some archive by year page return 404

When clicking on archive in my wordpress blog I get a list with links to different month, e.g., October 2020, ..., June 2019, ... When clicking on a month I get a view with posts whichs were published ...
0
votes
0answers
13 views

Pagination not working on archive.php template?

I have an archive.php template which I only use for the blog. The code goes a bit like this: <?PHP $the_query = new WP_Query( array( 'posts_per_page'=>9, 'post_type'=>'blog', '...
0
votes
1answer
50 views

Archive filtering posts by year and month

I want to create a date archive were all the existing years containing posts are appearing in a list, together with another list containing the 12 months of the year. Essentially it would be like this:...
0
votes
0answers
20 views

Problem with wp_query in Safari

The Query for my custom post type works well for most browsers, but there's a problem loading the images in Safari for MAC (not iphone), the may appear at first sight but they dissapear constantly ...
1
vote
1answer
23 views

Taxonomy archive showing no results

I have the file taxonomy-project.php and am trying to view results for some of my terms. I keep getting a result of NO even though I have a post applied to that particular term. taxonomy-project.php &...
0
votes
0answers
12 views

Configuring separate permalinks for posts and archives

I'm working on a site where posts are organised by category/year/month/posts. /%category%/%year%/%monthnum%/%postname%/ I've had a request to provide the site category/year/month archives (/%category%/...
0
votes
0answers
23 views

Archive page with year/months

I need to create a date archive that would look like this: 2020 2019 2018 2017 2016 JANUARY FEBRUARY MARCH JUNE Initially it shows the posts belonging to the most recent month/year but you can ...
0
votes
0answers
5 views

Unable to click on name and email box in comment session of my website and category archive title is showing in my category pages how can I remove it

https://exploreviotech.com/digital-marketing-a-new-platform-to-expand-your-business/ here is a link from my website you can check this issue in the comment box and here is the link of my category page ...
0
votes
0answers
13 views

Woocommerce (Storefront) custom list view

Woocommerce does not come with a native list view so I wanted to create one without a plugin. I set the items per row within the customer to 1 and now I am trying to align the image to the left and ...
0
votes
0answers
38 views

How to remove posts with specific custom field from the archive.php page

I'm using this argument to remove posts with a certain custom type from a template page: 'meta_query' => array('0' => array('key' => 'post_na', 'value' => 'true', 'compare' => 'NOT ...
0
votes
1answer
23 views

How to hide protected posts from archive?

Im trying to hide protected posts in WP from loop: function hideProtectedPosts( $where = '' ) { if (!is_single() && !is_admin()) { $where .= " AND post_password = ''"; ...
0
votes
0answers
6 views

Filtering get_terms so it displays tags by category

Is there a way to filter get_terms so it'll list only tags assigned to a post in a specific category? I have two categories on the site I'm building, Recipes and Nutrition and I would like to display ...
0
votes
0answers
30 views

Change / Alter Product Category Link with Page Link

I'm using this snippet to alter a specific Category link with Page Link and its working well : function wpa_alter_cat_links( $termlink, $term, $taxonomy ) { if( 'category' == $taxonomy && ...
0
votes
1answer
12 views

Rewrite only if no other matching page is found

I'm rebuilding a site in which I am required to change the URL structure for archive pages to something that WordPress doesn't handle by default. I have a custom post type named product, which has a ...
0
votes
0answers
51 views

How to add a sorting dropdown to archive pages?

I'm using Twenty Sixteen theme with a custom template for archive pages. What I'm trying to do is to add a sorting dropdown in those pages, like in the attached image. My code skills are very basic, ...
0
votes
1answer
19 views

Only show posts with a specific term of an associated taxonomy in a custom post type archive

I have a custom post type "movie" with a taxonomy "period". The "period" taxonomy has two terms: "current" and "past". Is it possible to only show ...
0
votes
0answers
17 views

Archive page no content to display

I have an archive page and everything is working perfectly fine, except when someone enters a search query that returns no content (no posts were found) then I get the nothing found message. My ...
0
votes
1answer
14 views

blog post not accesible on click [closed]

im just developing a web page with the gutenbiz theme and im changing a lot of the features through the elementor webpage builder, i have my blog page set as a blog but the post im editing them on the ...
0
votes
0answers
25 views

How to get archive link for multiple categories or select posts

Have widget which has option to display post with multiple categories or using posts ids Now i want to generate archive link for any of these condition. If user select 20 post ids have option to limit ...
0
votes
1answer
20 views

How to prevent WordPress from redirecting single page to prefixed category archive with same name?

I have been trying to solve this problem for hours. I would like to have a page with a simple slug (/blog) and a category term with the same name (/category/blog) exist on my site together at the same ...
0
votes
1answer
37 views

Do not show sub categories in the loop on archive-product.php

Currently, the site I am working on uses archive-product.php to load the Woocommerce product loop and with it, load the content-product.php template part. However, in my loop, if there are ...
0
votes
0answers
25 views

How to disable single page for specific posts?

I need to disable single pages for specific posts, but only after specific condition. My code is here: add_shortcode('list-posts-basic', 'ant_post_listing_shortcode'); function ...
0
votes
1answer
30 views

How can I noindex my archive pages?

I am using the following snippet in my functions.php. function add_noindex() { if(is_archive()) { echo '<meta name="robots" content="noindex,follow" />'; } } ...
1
vote
2answers
19 views

Group Posts by Category in Monthly Archive

I'm using the monthly archives on my website but my loop is currently displaying my posts this way : Category title Post title 1 Category title Post title 2 etc.. What I want to do is displaying all ...
0
votes
0answers
22 views

Can I overwrite custom taxonomy FROM “public” TO “false”

I have custom taxonomy within my WordPress installation that I created with a WordPress Plugin called Pods. For various reasons, I need to set the registering of the loop from "public" to &...
0
votes
0answers
18 views

Author Archive Page redirecting issue

When I click "Author" Hyperlink anywhere on the website, It is not working. say, I click: https://digitalvarys.com/author/admin/ And It Redirects to http://admin/ Why is it? Refer the ...
0
votes
1answer
105 views

Change the text “search result for” on search result page

I've been searching thru all WordPress files for the phrase "search result for", which is displayed on the search result page (search result for (keywords)) but can't find it. I would like ...
0
votes
0answers
23 views

Taxonomy.php inheriting first post

I created a generic taxonomy.php file to list posts with certain terms. <?php get_header(); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <a href=...
1
vote
1answer
30 views

Creating a custom archive template that sorts post by date

My site's default archive sorting is set to alphabetical, which I am happy with. However, I want to create a custom page template so I can also have an archive page which sorts all posts by date. I'm ...

1
2 3 4 5
20