‘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

Separate DB by yearly archive of WordPress

I needed this for a client recently (he wanted to do the same but be able to create a archive by himself in the wordpress backend) and couldn’t find a good plugin for it. It’s pretty easy to custom code this actually. You just need to make your install a network install and then place … Read more

Archive for CPT

Custom post types are not included in the ordinary archives by default, even if registered with the taxonomies argument. You will need to add the post type to the query yourself. add_action( ‘pre_get_posts’, function($qry) { if ($qry->is_main_query() && $qry->is_category()) { $qry->set(‘post_type’,array(‘post’,’yourposttype’)); } } );

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