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

learn more… | top users | synonyms (1)

0
votes
0answers
14 views

Custom post type archive option

I have a custom post type of 'channel', within which there's different channels - all of which have parent/children relationships for geographically-oriented sub-channels. I want an archive (using a ...
0
votes
2answers
24 views

Which URL to enter into browser to show all posts in archive.php?

Consider the simplest archive.php possible: <?php get_header(); while ( have_posts() ) { the_post(); the_title(); } get_footer(); What address should I type into the browser to get to ...
7
votes
2answers
71 views

How To Create A Paginated List Of All Categories On My Site?

I want to display an archive page with pagination that lists all the categories on my site, and each link goes to that particular category archive page. So this would be like an archive page of ...
1
vote
0answers
22 views

Filtering a custom post type by custom taxonomy in archive template

I've seen this question posted in different forms before, but most of those solutions are centered around the admin interface, and I haven't found any answers that apply to the front end. I've got a ...
-1
votes
0answers
16 views

WordPress category Pagination Not Working After Modify the Loop [duplicate]

I modify the category page loop as following code. Now Pagination not working. Why is that? How to correct it? Note : Even though there many similar questions on this site any of them not solve the ...
2
votes
1answer
20 views

front end publishing not working on front-end page

I have a custom front end publishing form on my website, based on this article. It works perfectly when I put this code inside a page, but when on the front-end page (homepage), it doesn't work, and ...
0
votes
0answers
21 views

Year archive permalink structure redirecting to home

I'm having issues with the permalink structure of my yearly archives. http://testsite.com/2016/04/ works, but http://testsite.com/2016/ redirects to http://testsite.com My blog base page is: ...
0
votes
1answer
16 views

How to toggle custom WP archive list

Help! I'm trying to toggle the "SideDish Archive" list in the right-hand sidebar of this page – http://my-table.com/sidedish/. I don't know really anything about javascript. Small company, small ...
0
votes
1answer
20 views

How to count the number of archives there are

Is there a way to count the number of monthly archives? For example, my site has the 3 monthly archives (jan 2016, feb 2016). So the number should be 2. How I can display the count. PS: I want to ...
0
votes
0answers
24 views

Hide empty categories from get_categories

I'm trying to hide the empty categories (with no posts associated) from a list in an archive page. I'm using hide_empty as suggested on Wordpress codex but it's not working, the code outputs all ...
3
votes
1answer
59 views

$query->set in pre_get_posts is unintentionally affecting the backend

So, I have a custom post type, 'properties'. I'm using archive-properties.php, and need to set some parameters on the $query. I don't want to use new WP_Query since I ran into some issues where a ...
1
vote
1answer
50 views

Sorting posts by season

What would be the best way to go about creating something like this (https://www.fiawtcc.com/calendar/) in WordPress? This is a calendar, with posts (containing the event date and event description), ...
0
votes
3answers
51 views

Editable content on a Custom Archive page

I want to allow my client to change some introductory text on a custom post archive page (eg. archive-unicorn.php), but I can't see how to do this. I guess one way I could do this is would be to ...
1
vote
1answer
18 views

How can I get the query that would be run for the archive page?

When a user visits a post type archive page on my site, I've got a bunch of hooks and filters that run on that query and get it just so. How can I, in a different request, say "I want the query that ...
0
votes
0answers
30 views

How to display total views of all posts of one category?

Is there any way to display total views of all posts of one category? How to show that number on archive page? I have used this code to count views of each post: function getPostViews($postID){ ...
0
votes
1answer
34 views

Archive for a Taxonomy of a Custom Post type

I have a situation like this: /disrupt-founders/disrupt-categories/help-me-be-healthier/ What I am wanting to do it create an archive page that is unique for the Taxonomy based on the Custom Post ...
0
votes
0answers
22 views

How do link to the most recent post in a category (Cornerstone theme)?

Hello friends :) I am in a pickle. I am creating a website in X/Cornerstone for an artist who has many projects , each has of which has its own Wordpress site. All of them rely on blog posts to ...
1
vote
1answer
28 views

Multiple filters for wp_get_archive

I need to display custom posts archives on a page in the following format: Monthly - Grouped by Month for the Current Year. Annually - Grouped by Year & Month for all previous years So I have ...
0
votes
1answer
25 views

Hide a specific post from Archive Feed

I want to remove a custom post type post from it's archive feed only. But keep in the main feed. Like is I have 1) main feed: myexample/feed 2) Custom post type Archive Feed: ...
0
votes
3answers
51 views

Get all posts from db between 2 specified months

Am trying to get wp posts between two specific calendar month. The problem is, it is a annual year. So month starts from May and ends in Next year April. So each year output should start from May of ...
0
votes
1answer
20 views

Change permalink for default archive - yearly

I want to change the structure of yearly archive URL of default post type post. As we know that default URL structure is like: Default: http://wwww.domain.com/2005 but want them rewritten, so end ...
1
vote
0answers
15 views

Yearly Archive for Categories with dropdown

this is my first post, I already read a lot of threads and tried a few ways but none of them worked. I have a website with two pages, which show the posts of a categorie "news" and the other one shows ...
1
vote
1answer
22 views

widget should display post archive by year and on click also by month

I want to display the post archives like seen in this picture. Shown by year and on click it should open up the months. I am not sure how to approach this, would you customize the standard WordPress ...
0
votes
0answers
20 views

Custom Field - Save Pageviews For Specific Time Period

I have a custom field called page_view to save page views. Now I need another custom field called page_view_last_24_hour to save page views in last 24 hour. Is it possible to use custom field to ...
0
votes
1answer
40 views

How to allow Readers to Select Post Order?

I added a select field for every category, tag archive page. Sory By Post Date Sort By Post Modified Date Sort By (custom field) When a reader select any of above how to load posts according to ...
0
votes
2answers
33 views

Custom Post Type tag taxonomy “Page Not Found”

I have a custom post type that looks like: register_post_type( 'letters', array( 'labels' => array( 'all_items' => __( 'All Letters', 'text_domain' ), 'name' => __( ...
0
votes
0answers
31 views

How to allow users to select post order in any archive page?

I have build a something like forum using WordPress (Not using plugins). Now I want to display select filed to select user to post order ( Most recent posts, most active posts, most votes post, ...
-1
votes
1answer
24 views

All post of child category not in top category

i have data category: - About us -- Sub 1 about us -- Sub 2 about us In Categor About us a has add post : About us 1, About us 2, About us 3.... In Sub category Sub 1 about us i has add list post: ...
0
votes
1answer
27 views

Post filter Month dropdown at front-end like wordpress backend

when i run the following code. $args = array( 'type' => 'monthly', 'limit' => '', 'format' => 'option', 'before' => '', 'after' ...
0
votes
0answers
34 views

Custom filtering/search

I would need to do custom search for my archive page that would filter based on metakeys, freeword and couple select options. Probably my best option is to use the normal wordpress search ...
0
votes
1answer
33 views

Custom Taxonomy Archives Page Errors

I have successfully created a custom taxonomy 'Authors' for quotations by adding the following code in my child theme's functions.php: /** * Add custom taxonomies */ function add_custom_taxonomies() ...
0
votes
0answers
26 views

Loop through custom post type taxonomies

I have created custom post type products and I want to show categories on products archive. I have this code <div class="container"> <div class="boxes"> <?php $cat_args = array( ...
1
vote
1answer
83 views

How to filter by date & a specific custom post type post-WP 4.4?

WordPress 4.4 introduced the ability to display date archives by appending /?post_type=custom_post_type to the end of the date url. i.e. localhost/2016/02/?post_type=news. I had assumed I could do: ...
0
votes
1answer
227 views

Woocommerce get the Archive/Category slug of the current category page

I want to get the slug of the current archive page. I have a slider where I want to echo the products that are in this category. After hours this is all I have and it doesn't work... <?php if ( ...
0
votes
0answers
26 views

archive-{$post_type}.php not working [duplicate]

My has-archive is set to true in the register_post_type. My archive-portfolio.php exists. I've tried flushing rewrite rules. I've tried a lot of other stuff, and after every step, I ...
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 : ...
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 ...
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
65 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
76 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 ...
0
votes
1answer
25 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
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 ...