‘Archive’ folder for posts and pages

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

Is there a better way to do headings for (all) archives?

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();

Author archive doesn’t work [closed]

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

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

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)