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

learn more… | top users | synonyms (1)

2
votes
1answer
481 views

How can I get archives for specific category without category_base in the url?

I'm using this code to get archives for a specific category: function extend_date_archives_add_rewrite_rules($wp_rewrite){ $rules = array(); $structures = array( $wp_rewrite->...
0
votes
1answer
2k views

Custom post type archive page pagination

I have set up an archive page for my custom post type reference, where I use a query to get all posts of type reference. This works, but when I try to paginate the result, it doesn't work. Right now, ...
0
votes
1answer
12 views

Get the link of the first post of a custom taxonomy in a custom taxonomy list

Currently, I'm doing this using a custom field, but I would love for this to be automatic. Basically, I have a page that will list all the entries of a custom taxonomy, but I want the links of the ...
1
vote
2answers
30 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
24 views

Wordpress Pagination archive/category [duplicate]

I have a problem with creating a simple pagination for the categories with WP_Query. I've got it to work for the archive, but if I try the same on the category template, then I get redirected to the ...
0
votes
1answer
637 views

Can I output a custom taxonomy as a submenu in the site navigation menu?

I'm building a WP 3.2 site with a couple of custom post types and taxonomies. I'm calling one of these custom post types programs, and its associated taxonomy is called topics. I'd like to add an ...
1
vote
1answer
415 views

Create template for taxonomy results limited by Custom Post Type

I've got a Custom Post Type with a Custom Taxonomy set up. So how do I create an archive template to display posts from that CPT, limited by taxonomy? Here's the deal: The CPT is called Shows. Each ...
0
votes
1answer
15 views

Parent and child relation code and display only first child list

for Indoor -for bedroom --TFL ---8u ---9u --MFL ---10u ---11u -for Kitchen --ABC ---4u ---5u --XYZ ---6u ---7u These are the category listing... when user click on the for bedroom at that time show ...
0
votes
0answers
11 views

List titles returned on Archive page in right widget

Hopefully someone can help with this! I currently use the TOC+ plugin to create tables of content in my right widget, which works great for posts and pages. However, for dynamic content in my ...
6
votes
1answer
133 views

Meta_Query as a way how to setup CPT permalinks - is it a good thing?

I'm creating quite complex website for a literary magazine. For its custom post types Issue and Event, I wanted different permalink structure than for posts (which is basic http://example.com/%...
0
votes
2answers
2k views

Proper way of making custom post type landing page or archive page

I always run into an issue with creating archive or landing pages for custom post types and wanted to know how others handle this. If I want to have a landing page for a custom post type, however I ...
1
vote
2answers
613 views

Menu Disappears on Category Pages

I have a site whose navigation disappears on category pages for posts in the ‘post’ post type, but not for posts in any of my custom post types. The ‘post’ post type and post of the custom post types ...
0
votes
2answers
963 views

Load new Posts on Scroll on Page

See this reference site: http://alwaysjudging.com/archive/ It's loading new posts on scroll down, similar to Infinte Scroll plugin. (But I'm unable to get the Jetpack Infinite Scroll plugin to work on ...
0
votes
0answers
14 views

Taxonomy archive: Query all posts first, and then group by taxonomy term?

I have two taxonomies: 'season' and 'style'. On my 'season' archive template, the following query groups all the 'season' posts by their 'style' term. This works great. But the problem is that I ...
0
votes
1answer
22 views

How can I generate a list of post-type specific categories?

I'm trying to generate a full list of post categories with links based on post type. So, let's say I'm on an archive page for the custom post type "reports" - when I click on a category link (for ...
1
vote
2answers
601 views

Custom post type / taxonomy rewrite archive page 2 gives 404

I've followed the code based off this and everything is working perfectly -How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-...
3
votes
2answers
103 views

Sort posts by tags in category pages

I would like to sort posts by tags in category and archive pages. (Unfortunately there isn’t an orderby parameter for tags. That would make things so easy!) So a category page would be like this: ...
3
votes
5answers
12k views

Get custom post type slug for an archive page

How do I discover the custom post type slug when I'm on an archive page? For instance if /products/ fires the archive-products.php template, how (pragmatically) do I get the post type slug? Thanks
0
votes
1answer
605 views

/tag/tag_name/page/2 gives a 404 error

I created my own template for list of entries for certain tag (tag.php), It will shows up 10 entries, and with Previous & Next link. <?php $paged = get_query_var('paged') ? get_query_var('...
1
vote
1answer
525 views

WordPress custom post type archive with description

I have a common design pattern I'm not entirely sure how to best execute in WordPress. The layout is a listing of post teasers (title, trimmed body, image) on an overview page. Let's say example.com ...
2
votes
1answer
551 views

Category specific months list in sidebar.php

What have made me pulling my hair apart for while, how to output category specific month list. I've been searching for the same problem and solution cannot find any lucky so far... Anyway, I have two ...
0
votes
1answer
27 views

get the custom post type title/name

I'm using a custom post type and use this plugin to display my custom post type's archives, does anyone knows how to display my custom post type's name/title to the archive.php? Below is the archive....
0
votes
3answers
566 views

Remove category from query (show all posts in archive.php) pre_get_posts()

I am using pre_get_posts() to allow all posts to be displayed on any category archive. This is because I will provide a javascript sorting and filtering method using isotope.js. Any category page will ...
1
vote
0answers
70 views

Sorting a specific taxonomy by archive date using URL

OK, so I'm looking for a way to sort a specific taxonomy by archive date using the site URL. Say the custom taxonomy ("sort") value is "fruit" then then you would currently get all the posts marked ...
1
vote
1answer
50 views

Filter blog archive by category in URL

I've created a fairly basic form that allows users to filter post type archives by their taxonomies. On custom post types this is super simple to do by simply setting ?taxonomy_name=term_slug in the ...
1
vote
4answers
1k views

Force Wordpress to Show Pages Instead of Category

I am trying to create a SILO structure on one of my WordPress site. I have always checked this option on Yoast SEO plugin "Strip the category base (usually /category/) from the category URL." So my ...
0
votes
0answers
27 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
31 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 ...
8
votes
2answers
84 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 ...
0
votes
2answers
515 views

Guest Author - How to display posts on /author/ archive page

I have used the Advanced Custom Fields plugin to create all the data elements for a company leadership directory page and management bio pages. On the site blog, management will not be posting ...
0
votes
3answers
55 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
votes
1answer
607 views

Archive with months of current year only

I'm trying to figure out how to get the following archive navigation: JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC 2012 | 2014 Thus, a list with the months of the current or selected year ...
2
votes
0answers
37 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 ...
2
votes
1answer
25 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
22 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: http://...
3
votes
1answer
66 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 ...
0
votes
1answer
18 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
21 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
38 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 ...
1
vote
1answer
53 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), ...
1
vote
1answer
19 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
34 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
24 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 ...
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 ...
1
vote
1answer
31 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
26 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: myexample/...
0
votes
1answer
25 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
18 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 ...
0
votes
0answers
21 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 ...