archives
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.
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.
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 post from the post archive loop. I also tried with wp_kses_post( get_the_archive_description() ) but it also does not seem to work.. Any idea how this can be done?
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 know how to find the slug if I have the name.
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.
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 title and “Marketing” is the actual name. This is the code that I used:
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 the posts’ content, and I’m able to use the corresponding filter to customize it; however, it’s stripping the HTML and not allowing me to style it. How do I get past this?
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?
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.