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

learn more… | top users | synonyms (1)

1
vote
1answer
29 views

Author archive doesn't work [closed]

I'm trying to solve an issue on my website : www.jack35mm.fr I didn't make the theme (just bought it), but the thing is : the author archive page doesn't work. I mean : ...
2
votes
5answers
10k views

get term archive url / link

I created custom post types & custom taxonomies for these. Example: actors (taxonomy) for movies (post type). Now I want to show up in my widget some terms and a more link for the actors terms ...
-4
votes
1answer
1k views

AZ Directory posts directory index

I would like to create an A to Z index of posts in a certain category. This must include a linkable directory of letters ABCDEF .... etc and a list of articles ordered by title grouped by letter. ...
0
votes
0answers
22 views

Redirecting archive page (blog) to normal page

While trying to redirect an archive page to a normal page using .htaccess I can't figure out how to make it work. I've tried using those three lines: Redirect 301 /blog$ /mvo-database RedirectMatch ...
1
vote
2answers
58 views

The loop seems stuck to a single (now deleted) post

At first I thought it was an ACF problem, but printing some values helped me to find out that somehow my Loop seems stuck on a single post, but only when some fields are concerned. To sum up my ...
1
vote
1answer
2k views

Pagination throws 404 error on custom taxonomy archive pages

I have created a custom taxonomy for a custom post type called "portfolio" like so: function jvs_portfolio_categories_init() { register_taxonomy( 'project-category', 'portfolio', ...
6
votes
3answers
10k views

get_categories for custom post type with a specific custom taxonomy attached

Basically I have a custom post type of 'products' which has two taxonomies attached to it...the normal 'category' and a custom taxonomy called 'brands'. I have a page which is 'brand' specific. On ...
0
votes
1answer
16 views

get_the_terms_list output last child only

I'm using get_the_term_list on an archive page which currently outputs all categories that a post is in with links. My question: Is it possible to only display the last child category, not any ...
0
votes
0answers
14 views

Unexpected template for different cat name & slug

I just shifted the website from staging to live There is category name = blog slug = blog And a page name=blog slug=blog(given by mistake) using template Blog which show posts from category ...
0
votes
1answer
63 views

How to remove category titles?

When I go into certain categories, there is a page title that says "Category: category_name", like this: I would like to remove the "Category" from that title. I've already looked around quite a ...
0
votes
0answers
23 views

WooCommerce - Display Grandchild Categories on Archives Rather Than Child Categories

In WooCommerce I have two main categories that both have subcategories that go two levels deep. As such the two categories have child categories and grandchild categories. I currently have ...
0
votes
1answer
28 views

Bundle a page with custom url and a function

I have a plugin that allows users to bookmark posts and I want to create a page/archive/index for all those bookmarked posts. What I've done so far is: created a menu link that is displayed if user ...
1
vote
0answers
30 views

Filter custom taxonomy archive posts by 2nd custom taxonomy using select dropdown

I have a CPT called 'online-lots' for displaying items in an auction. The posts are grouped by custom taxonomy called 'sale' (e.g. '07_15 July Sale)', meaning that a whole catalogue of items can be ...
0
votes
0answers
31 views

Hierarchical permalink for taxonomy archives

Hi I have a custom post type "book" and a taxonomy "authors". Currently taxonomy archive permalink works as: localhost/book/child-author-term and localhost/book/parent-author-term No problem if ...
0
votes
0answers
17 views

Shows default archive page instead of Custom archive page

I have registered custom post and taxonomy with this code. Then created archive-{{post_type}}.php that is archive-book.php for me. I need to get archive-book.php while visiting ...
-1
votes
1answer
74 views

How to pass posts_per_page and paged params query vars to custom taxonomy archive urls?

So I made some custom posts and taxonomies.. http://example.com/?product_category=mytaxonomyterm&lang=it Till here, all fine: I get a 'mytaxonomyterm' taxonomy archive. Btw, lang is because I'm ...
1
vote
0answers
75 views

Prevent 404 when using pre_get_posts to filter an archive page

I have added a custom taxonomy named "area" to the default "post" post type. It's meant to organize posts by geographical area. In category pages I've added a dropdown that allows the user to filter ...
4
votes
5answers
22k views

How to get category and archive title?

When I query the category (category.php), how do I get the title of the current category, ie., the one that is being queried? And how do I get the title for tag and date (be it the day, the month or ...
0
votes
3answers
1k views

why the archive of custom taxonomy term shows nothing?

I have a custom post type for which I have created a custom taxonomy called 'tag'. taxonomy-tag.php file looks like this: <?php get_header(); ?> <?php $term = get_term_by( 'slug', ...
1
vote
2answers
39 views

Private theme update with zip archive without deactivating the theme

I have a private theme and I want to deploy new theme versions of it as smoothly as possible. I've heard about: hosting the theme somewhere like wp-updates.com using plugins to update theme ...
0
votes
1answer
23 views

Archives widget doesn't work?

I've seen the same thing in every theme I've tried: Main page shows ten (or more) most recent posts. Click on a month in the archives list, more than a year back, and Wordpress generates the exact ...
1
vote
1answer
112 views

get_post_type_archive_link('post') returns current category archive

I am using get_post_type_archive_link('post') on my index.php page to get the url of all posts from all categories. I'm using it in a filter. I have listed all the categories separately using ...
0
votes
0answers
25 views

Tags & categories in post not found how can I fix?

I am setting up a custom theme with as base template underscore. New I am completing the last bits and bolts ... but it seems that the categories and tags are not working: ...
0
votes
1answer
269 views

Archive subtitles for different types of archives

I would like to display a custom subtitle for the different type of archive pages. I can easily know what type of archive page I'm in (date, category, etc.) but I have found nothing online that tells ...
0
votes
1answer
26 views

I want to show my post for limited time, how is it possible?

I want to make one website like a newspaper, so i want to show my daily post for one day or limited time, after one day previous post will go to archive and no longer show on web page, how is it ...
4
votes
2answers
7k views

Sort results by name & asc order on Archive.php

I currently use the following code to list posts in Archive.php but I want the results to be ordered by name in ascending order, I have checked the codex but the answer isn't clear to me, how can I ...
1
vote
0answers
14 views

display archive as collapsing links

I would like to output the following - 2015 -October - my post is good - another post September - 2014 - January -February I want to be able to output a nested listed of the ...
0
votes
1answer
20 views

How can I relate custom post types?

I've got a custom post type of product and one of case study. Each product has a series of related case studies. How in Wordpress can I relate these items? I'm using CMB2 and a custom multiselect ...
0
votes
0answers
12 views

Is there a way to combine Permalink Settings?

Image from the Codex on using Permalinks: How might this relate to custom post type archives? They claim that you can create custom URL structures for archives, but the Codex page only talks about ...
0
votes
1answer
22 views

Is a list page usually called an archive page in Wordpress?

If I have a custom content type of events, and I want a page that shows all the events, is this known as an archive in Wordpress? This would be the link http://example.dev/?post_type=event that ...
0
votes
0answers
36 views

Having a problem with Next and Previous Links

I've run into an issue with next/previous (which I implemented on archive / author pages successfully by just following the codex instructions). I have created a custom category page for "Pine Trees" ...
0
votes
1answer
21 views

Display Day names with wp_get_archives instead of date

Im basically trying to show the archive for 1 week and instead of displaying the date, i want to display the day names. like monday-sunday. right now im using this code ...
0
votes
0answers
29 views

Custom nav menu current item custom link problem

Because I want to add <span class="dashicons [class]"></span> inside each link of my menu I needed to create a custom made nav menu. I did this by the code below which works great, but ...
0
votes
0answers
26 views

Newsletter/Publication Archive

I work for a non-profit that offers Newsletters to our members and we are looking to add an archive of all past issues for our members (in pdf format). We do want to restrict access just to members ...
0
votes
1answer
36 views

is_page() not working with archives?

I am creating a dynamic menu and in my foreach loop I am running a is_page using the page title: <li class="<?= (is_page($tlp->post_title) ? 'active' : '');?>"> </li> This ...
0
votes
2answers
130 views

Show archives by year from just one category

yesterday @jas helped to how to show archive by years in my nav. It works fine, but there is the second one little problem. The @jas's solution filter me posts from all categories by year, I'd need ...
0
votes
1answer
83 views

Adding archive years to my menu

I'm Wordpress newbie and despite of reading many articles, I'm able to put archive years to my main menu. Menu contains pages and I need to add an archive. My current menu: - Home (page) - About ...
0
votes
1answer
22 views

Archive - Show Video from First Post

I am relatively new to developing in WordPress. The way my posts are structured is the post title with a video underneath followed by text. The videos supplied by my client are in JavaScript tags. ...
0
votes
0answers
18 views

Disable archiving of old posts?

I need to disable archiving. We want to have all posts, no matter how old, remain in the roll with the newer posts even if you have to page back to get to them. I've been searching, and most of what ...
0
votes
0answers
54 views

Way to add archives as a menu item?

Is it possible to add an Archives dropdown -- like the Archives widget -- as a menu item in Menus?
0
votes
0answers
16 views

Way to filter hundreds of posts on a paginated archive page?

I have a client who wants to filter subcategory posts on a category archive page, which I can handle, but there are hundreds of posts. It's just the featured image and title, but even so it would have ...
0
votes
0answers
65 views

Change plugin's has_archive = true to false?

When a plugin registers a post type and sets has_archive to true, is there a way to change it to be false? I don't want the plugin's post type to have an archive, but can't figure out how to turn it ...
1
vote
1answer
151 views

weekly archive for custom category

<?php $args = array( 'cat' => '2', ); ?> <?php wp_get_archives($args); ?> I pull out the custom category with the above codes, it works fine & shows up "February ...
0
votes
0answers
72 views

How to create a custom archive by year, month, week

I have been searching for something that will do what I need, but have not found it. What I'd like to do is create an archive page that looks like this: 2015  October ...
1
vote
1answer
80 views

From where is archive.php getting its posts?

My archive.php starts like this: get_header(); ?> <?php if( have_posts() ): ?> <div id="container" class="portfolio-wrapper"> <?php while( ...
0
votes
1answer
811 views

Custom post type posts don't show in archive widget

I have a custom post type called 'Podcasts' but none of the posts are showing in the archive widget. Only the main query (blog posts) are being shown. I've tried adding this code below to include the ...
2
votes
1answer
1k views

Display only posts from referred category on date archive page

I am using wp_get_archive() in category.php. If I am on page of category=2 it should show my archives of only that category. However it is for all the categories. Following is the code for my ...
0
votes
0answers
50 views

Index.php Not Showing Custom Posts / Terms

I have my index.php page set up and is displaying my posts page as well as category archive pages without any issues. The problem however, is trying to display posts for custom taxonomy archives. The ...
0
votes
1answer
54 views

Echo taxonomy name - second level

I have the following taxonomy: Location: Province --City ----Suburb Province --City ----Suburb How can I echo the names of "Suburb" (second level) on an archive page? So, for example: Location: ...
0
votes
1answer
73 views

Current author archive in navigation menu

I want logged-in user see her/his own author archive page link in top navigation menu,say (a link to a list of all her/his posts). What I achieved so far is this: function my_nav_menu_author_link( ...