Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

All Questions

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

Can I Permalink to all posts older than specific year instead of just posts from specific year?

I need add a link in a menu that points to a page with all posts older than 2016 , by default if i link to myblog.com/2016 it will show the archive for that specific year, but I want a link to show ...
0
votes
1answer
18 views

Does WP automatically tag posts into the archive?

We have about 700 posts on our WP site and some of the older ones (+5 years) seem to get tagged as "Archived", under the tag "tag". I attached a screenshot of the search result with the same article ...
0
votes
1answer
34 views

Display post count on archive page in reverse order

I'm displaying some posts and I want each of them to display a post number. The first post being number 1, the most recent post being 10 (let's say there's 10 posts.) I'm currently using <?php ...
0
votes
0answers
23 views

blog archives and search issue

this is my first blog, I have no experience so this is conglomerate of code that I found on stackoverflow etc. I want to ask is everything correct? archives and search results are wrong. any ideas ...
1
vote
0answers
28 views

Archiving by academic year instead of calendar year

I am building a website for a school where teachers can add posts for classwork. The posts are categorised by the class name (e.g Year 1, Year 2, etc). The academic year goes from September to July. I ...
1
vote
2answers
118 views

Display posts from #6 to #20 on archive page

My client shows his 5 most recent posts (excerpts) on the homepage followed by a "read more" link. On archive page he does not want to display the 5 most recent post again but posts from #6 to #20. ...
0
votes
2answers
394 views

show image gallery in archives or category page

i want to show image gallery in archives.php or category.php. The featured image and text content is showing but not image gallery. Below is the code inside category.php. I have tested to show one ...
0
votes
1answer
254 views

Prevent Archive URLs

My Wordpress site goes looking for an archive page if I append a year after the URL. For example: http:/mysiteurl.com/my-site/2018. If there are posts from this year, it ends up redirecting to index....
0
votes
1answer
30 views

view a list of 3 future post, from the nearest to the most far

for my club's website I have a list of upcoming events. Every event is set with the date it will take place, so I'll have ordered it in archive. I already prepared the site fo view future posts via ...
0
votes
1answer
64 views

singular posts using archive styling

I am making a wordpress twenty seventeen child theme. In this theme I have a archive page for all posts with the category "all". Every post has a sub category. On the archive page all posts are showed ...
0
votes
1answer
28 views

Get posts from category from custom query

Hello I have the following custom wordpress query. This displays all the blog posts just fine. <?php $mymain_query = new WP_Query( array( 'post_type' => 'post','posts_per_page' => '10' ) ); ...
1
vote
1answer
33 views

Yearly archive page for future year

There are some posts dated on future year. I would like to show them. What have I done so far: add_filter( 'getarchives_where', 'displayFuturePosts', 10, 2 ); function displayFuturePosts( $text, $r ) ...
1
vote
1answer
516 views

List category posts alphabetically on archive.php

I have a bunch of categories with sub-categories and sub-sub-categories that I want to list on my archive.php. The titles of the sub-categories are listed on the archive page of its parent category. ...
0
votes
1answer
486 views

Link for the page archive for posts, like using custom post types with get_post_type_archive_link

I am trying to get the page to list all my posts (post type = post) in archive. I can do this with custom post types, with get_post_type_archive_link(), but using get_post_type_archive_link('post') ...
0
votes
1answer
82 views

How do I apply a wordpress function to something with no ID inside an archive page?

Inside of an archive page I have multiple boxes. In those boxes I want to add a star rating, but I don't want to create a separate post for each of these boxes, I only want to make the boxes manually. ...
1
vote
6answers
2k views

Increase 10 post limit per page

I am new to wordpress and coding. I created this website: http://www.psychiatryeducationforum.com/ I have six archive pages, and I am posting different posts under each category. I just realized ...
2
votes
1answer
65 views

Slug for standard post post_type

I have a custom post type with an archive page, e.g.: example.com/chronicle. I want to have a page that lists the standard post type, post. This works: example.com/?post_type=post. But, I want to ...
0
votes
0answers
55 views

Page 2 has no posts?

I am having a problem with my blog page archive.php. When I click the next link at the bottom navigation there are no more posts. I have a pretty basic setup which works fine for my search.php, the ...
0
votes
2answers
1k 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 ...
2
votes
2answers
2k 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 ...
1
vote
1answer
3k 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
1answer
95 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 ...
0
votes
0answers
25 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 ...
1
vote
0answers
2k views

change default post archive page link

I can't figure how to change the default post archive link. I've got few custom post types (for instance video_news, slug video), if I type www.blogname.com/video I get the archive.php. And every ...
0
votes
0answers
224 views

is_archive() not working on selected “Posts page”

I selected a page called "Actualités" in Dashboard > Settings > Reading > Posts page. Wordpress does not use archive.php when I load this page, but index.php. So I try to use is_archive() ...
0
votes
1answer
81 views

How to display term in archive page?

I want to display 'state' in my custom post type 'job' Archive page. Now my archive page only have title and excerpt. Can you tell me how to modify this 'content-job.php file? p.s. My post type is '...
0
votes
1answer
260 views

How to display data in archive page?

I have a custom post type 'job'. I created a archive-job.php . How can I display 'post date', 'city', 'state' in my archive-job.php page? Currently, my archive-job.php page displays a list of jobs ...
1
vote
2answers
2k 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
2answers
1k views

Display all posts from selected month

I am trying to display all posts from a selected month. Currently once I select a month, only 10 posts display. I understand I can increase the amount of posts to show under the 'reading' options ...
0
votes
1answer
157 views

Archiving posts in wordpress

I will have lot of posts in my wordpress site. And I want a archiving functionality. I have a separate section in my site which will show only the archives, and the archived posts will not show up in ...
0
votes
1answer
662 views

Exclude a category of posts in author template

I'm using the following author archive code: <?php /** * The template for displaying Author Archive pages. * * @package Cryout Creations * @subpackage Parabola * @since Parabola 1.0 */ get_header(...
2
votes
1answer
1k views

At my posts archive page, outside the loop, get_the_id() returns the top most post's ID

I'm trying to get the ID of my posts archive page. It's set via the admin as the posts page so it already has the default Query. The template I'm using is index.php, Tried using page-blog.php but ...
0
votes
1answer
197 views

How to edit the '<— older' link on archive page in Blankslate theme? [closed]

I am using the 'Blankslate' theme for Wordpress and I edited about everything except for the older and newer links on my blog page. How can I change this links in the Blankslate theme? It isn't ...
-3
votes
1answer
864 views

custom sort posts in archive/taxanomy page

I want to override the default sort order of posts in archive and taxonomy pages. what hooks should I implement?
0
votes
2answers
139 views

Post-Archive like a page in a specific subdirectory

I have a webpage with posts which belong to specific categories (eg projects). I want to show the archive of a specific category like a page. Status quo The site structure is similar to this: / ...
0
votes
1answer
73 views

My posts section for logged in user

I would like to create a page that shows only posts written by the user logged in and get a link (such as www.example.com/AuthorPostsID) to put on the menu. I'm trying for two days. Does anyone know ...
0
votes
1answer
170 views

How to organise post by category and date

I'll try to be as clear as possible. I'm working on a project that requires posts organised by category and date. I need something like this: First step: Annual listing of archive 2014: Jan Feb Mar ...
0
votes
1answer
366 views

Daily posts like an archive

I need to show 30 daily posts in the main page of a site. I also need to put 2 links, one that gets to a new page showing 30 posts made yesterday and the other to show 30 posts of 'tomorrow' if I'm ...
6
votes
2answers
12k views

Difference between an archive and a page listing posts

I am wondering what is the difference between a wordpress archive page, and just a page template listing out posts? Right now I have a custom archive page, listing all entries of a custom post type. ...
0
votes
1answer
49 views

How to set a link to custom archieve page

I am working on my blog where I wish to have a archieve for only specific category post. To make it, I create a custom archive-cat.php. So for example I can get archive link date by wp_get_archives(). ...
0
votes
1answer
2k views

Single.php Active Category Class

Currently by default (I believe) when you're on single.php, Wordpress doesn't add a "Active" class to the blog category you're viewing the single post in like it would for pages or if you're on the ...
0
votes
1answer
67 views

Display in category ( taxonomy) a number of post that I want

How can I display a number of 20 posts in my Page Archive (Taxonomy Archive)? For example: in wordpress settings in Reading I use: Blog pages show at most 10 posts. This works in arhive page, but ...
0
votes
1answer
268 views

How to get alphabetic listing x other posts, based on first letter post?

Let's say I have a post called "Hello World" and I am on that page... Let's say I have different posts like "Haaaa" and "Hoooo".... What I want to do is showing Haaa and Hooo in a different place (let ...
0
votes
1answer
128 views

How to let custom post type posts show in standard post archive (like in homepage)?

If I, for example, create a custom post type named 'tutorial', how do I get it to also show up in places like "Recent posts" , etc?
0
votes
1answer
39 views

Find out in which kind of archive am I

in archive.php file, I want to know, which type of archive I i'm in. For example, if I i'm in archive for category Personal I'd like to be able to display it in header of the archive. Of course, I can ...
0
votes
1answer
52 views

How to make a list of posts displaying them 5 by 5 with a “next posts” link?

I have been googling for the past 2 hours and haven't been able to figure this out, mainly because I am missing the right terminology, in other words, I don't know what I want in "wordpress words". ...
0
votes
1answer
225 views

Custom Post Type archive

Hey all first off im a WP newbie so go easy! Ive been searching for a couple of days now to see if I can find the answer to this but cant get anything definitive. I have a custom post type called '...
0
votes
1answer
540 views

Filter/Sort Post Form On Taxonomy page

I am trying to create a form on the taxonomy template that will be able to filter the posts the current user is viewing. I want to use a few drop downs and submit button to do so. My code looks like ...
0
votes
1answer
109 views

How do I display the next 3 posts in the sidebar?

I'm building a simple "company news/press release" site. We'd like to display the latest five post excerpts on the home page with the next three post titles (six through eight) and a single "Archives" ...
4
votes
1answer
1k views

How to Add jQuery Infinite Scroll to My Custom Archive Page

I currently have a custom archive page that displays my current post at the top and then links to all of my older posts below that. However, I need to break up the page so that it displays the ...