How to change category and year archive permalinks/rewrite rules?
How to change category and year archive permalinks/rewrite rules?
How to change category and year archive permalinks/rewrite rules?
As suggested by @RobertWent, it was a simple matter of a CSS issue. A rogue display: flex; on the image container was the troublemaker, and once removed, the issue was resolved.
Category being displayed without base parmalink
Change CPT archive title
the_posts_pagination() is an echo wrapper for get_the_posts_pagination(). The getter generates pagination links with paginate_links(), which returns a string with the links separated by a newline character by default. This string is passed to _navigation_markup() to get the complete pagination markup. We can manipulate the paginate_links() output with paginate_links_output filter, before the navigation markup is generated. … Read more
WordPress can generate these, so you can too. You would need to use the same function that WordPress does. For category it would be something like: $category = get_category_by_slug( ‘example’ ); $link = get_category_link( $category->term_id ); Similarly there is get_tag_link() and on deeper level they all really use get_term_link() I didn’t play much with authors, … Read more
I’ve looked over code and it doesn’t seem possible with this function. Months and their post counts are fetched with raw SQL query, for months without posts there are simply no records in database. It doesn’t make effort to skip empty month, it simply doesn’t get those from database.
On a category archive page, you can use get_queried_object() to get the data of the current category in the main request, and get the slug like so: get_queried_object()->slug.
From the top of my head, get_day_link() does not work for custom post types. This might work in 3.1 as you can add archives to your custom post types.
There is nothing in term_description() and deeper (that I see) that checks for user. You can try this and see if it returns WP_Error that might make term_description() return empty string: get_term_field( ‘description’, $term, $taxonomy )