Questions tagged [archives]

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

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

Permalink Short code showing unnecessary link text inside the loop

Recently I need Help regarding this permalink shortcode function my_permalink(){ ob_start(); the_permalink(); return ob_get_flush();} add_shortcode('my_permalink','my_permalink'); for this, I get a ...
0
votes
0answers
23 views

Creating archive like functionality through birectional relationships

I could use some guidance in something where I may have developed myself into a corner. Here is the situation I have: CPT: Communities CPT: Innovators CPT: Success Stories Any Innovator or Success ...
1
vote
0answers
26 views

archive by year and category: permalink support doesn't work on pagination

I found here: Category archive by year with permalink support /category/YYYY the solution to obtain a category-by-year archive also supporting perma: function catyeararchives_init() { ...
0
votes
0answers
19 views

How do I get the category terms (multiple) queried on a category page?

Here's an example of a URL showing results from both the foo or bar category (note: I'm using pretty permalinks): https://example.com/category/foo,bar Based on this URL, and without parsing the URL ...
0
votes
0answers
8 views

Attribute Posts to User via Custom Field Value

I have a custom user role on my website "reviewer" of which one can view an archive page, just like a normal author, where published posts are attributed to that user and displayed in ...
1
vote
0answers
12 views

Category being displayed without base parmalink

My permalinks are set as /%category%/%postname%/ But I am getting duplicate pages domain.com/category/jazz is also the same as domain.com/jazz I do not want domain.com/jazz to display as an archive ...
0
votes
1answer
11 views

Display WordPress archive template page in 3 columns and not 1 column [closed]

I'm trying to achieve the following: Currently WordPress display them in 1 column: Is there code I can Add to the template file, to display all the blog post in this grid layout
1
vote
1answer
20 views

Featured Images Not Loading In Blog Archives

A client running a custom theme recently updated their WordPress version from 5.2.7 to 5.7.1. After this update, featured images in blog archives are no longer loading. The theme has been updated to ...
0
votes
1answer
13 views

How do I make an array to get the category name, dynamically, in an archive template?

I'm new to php and wordpress. I am building an archive template that has to make a masonry gallery with all the posts of the current category. I have to replace the 'edito' with a dynamic piece of ...
1
vote
0answers
14 views

How to change category and year archive permalinks/rewrite rules?

first of ll I'd like to find a way to substitute 'category' with 'events' in permalinks. Currently I've got this: http://example.com/category/post-name/ And I would like it to be: http://example.com/...
2
votes
1answer
18 views

What type of page should i use? static page or category page? and what's the difference? [closed]

I’m a new WordPress user and i’m very confused about my how the structure of my website should be. I’m creating a language learning website and i started with the static pages (Home, about, etc.) Then ...
0
votes
1answer
19 views

Why is my archive.php redirecting to front-page.php?

I generate archives using wp_get_archives() and get list of all my archives. But when I click one of the links its always redirect me to front-page.php which is www.mydomainexample.com. I've created ...
0
votes
1answer
20 views

Archive page for taxonomy terms

How can I create a archive over terms from a custom taxonomy like there is for custom post types? domain.com/taxonomy is empty/404, while domain.com/cpt shows all posts for that CPT. I know I could ...
0
votes
1answer
24 views

How to Get The Excerpt of the page that displays Blog Posts

I use a static page (Blog) to display the latest posts. I want to show the excerpt of that page next to the title. However, wen I use wp_kses_post( get_the_excerpt() ), I get the excerpt of the latest ...
0
votes
0answers
11 views

get_archives_link : Dropdown (count)

I created a hook to add a on the number of results in the archive widgets. This hook works fine in htlm mode, but when I change to Dropdown, it isn't executed. I need some help. Thanks add_filter( '...
0
votes
0answers
8 views

Archive for custom taxonomy term within a custom taxonomy term

It's not easy to describe for me, but I'll try with examples - I don't really know if its possible, but here is my idea or wish 💡 I having two custom taxonomies: topic (like: tv, beamers, soundbars) ...
0
votes
1answer
35 views

What is an equivalent of single_cat_title for getting the slug of the category?

I searched for something like single_cat_slug but I did not find something relevant. All I don't know how to do it is to find the slug, not the name, of the currently opened category page. I do not ...
0
votes
0answers
26 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
38 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
38 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
33 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
33 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
16 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
16 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
21 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
15 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
14 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
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
45 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
42 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
8 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
26 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
255 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
22 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
15 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
28 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
7 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
39 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 && ...

1
2 3 4 5
20