Constructing An if Statement with is_category(); in archive.php
Constructing An if Statement with is_category(); in archive.php
Constructing An if Statement with is_category(); in archive.php
Checking if a specific date archive is being displayed
You can add a custom post status via register_post_status, but I’ll warn you now that the API only half exists for this. You won’t see any UI to allow you to set this status, you’ll have to provide your own via a custom meta box, and you won’t see anything on the back-end to allow … Read more
Date Archive pages 404 error
You could create your own template function which you reuse instead of copy&paste. Basically put something like this in your functions.php function my_theme_archive_header(){ echo “Custom header output”; } Then you just put a call to this function in your template. my_theme_archive_header();
How to conditionally check for author archive when is_author() fails to work because the author has no posts
Custom post type archive page thinks I’m not logged in
Having a problem with Next and Previous Links
These things are fun because there are so many possibilities. I’ll start my series of answers here and you can accept it once we get it right. First thing, your site is allowing directory listings — this is bad for security — but at the moment is helping me see what might be causing the … Read more
There is no logical explanation why if( is_post_type_archive(‘news) && is_date()) should fail and not work in your situation. is_date() return true on all date archives is_post_type_archive( ‘news’ ) will return true on post type archives When you visit localhost/2016/02/?post_type=news, both of those ring true, and they will only ring true on that specific URL If … Read more