Individual rss feed entry length for categories?

You should be able to use pre_get_posts and set the posts_per_page to 50 conditionally (on being feed for categories). Unfortunately there is this unresolved trac ticket. The only work-around is to do hook into post_limits and replace the LIMIT part of the SQL query directly. add_action(‘post_limits’,’wpse71759_category_rss_limit’,10,2); function wpse71759_category_rss_limit($limit, $query){ if( $query->is_feed() && $query->is_category() ){ $paged … Read more

How do I remove “Uncategorized” from posts with more than 1 category?

With wp-cli installed you can run a bash script like this to remove the ‘uncategorized’ category from all posts with more than one category #!/bin/bash for post in $(wp post list –field=ID) do count=$(wp post term list $post ‘category’ –fields=”name” –format=”count”) if [ “$count” -gt “1” ] then wp post term remove $post category ‘uncategorized’ … Read more

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