How to get permalinks with category base working with sub-categories

I was able to get this to work pretty easily actually. I am now able to have my category base in my permalinks. This allows me to now have URLs like: http://www.new1450.dev/industries/ {Main blog post only showing category selection} http://www.new1450.dev/industries/development/ {a parent category} http://www.new1450.dev/industries/development/parent-category-i/ {child of parent} http://www.new1450.dev/industries/development/parent-category-i/child-category-i/ {child of child} http://www.new1450.dev/industries/development/parent-category-i/child-category-i/some-cool-post/ {actual post} This … Read more

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

deneme bonusu veren sitelerbahis casinomakrobetceltabetpinbahispolobetpolobet girişpinbahis girişmakrobet girişpulibet girişmobilbahis girişkolaybet giriş