I want to get the link to a category (specified by id) but with a paged value (e.g. page 3 of category id 4).
I was looking into get_category_link()Codex, but it only returns the link to the first page of the category.
Is there a build-in function that I can make use of to get the link to a category page that reflects the blogs URL-layout settings (?paged=3/ /page/3)?
Edit: I added my solution as an answer.
get_category_linkdisplays the first page only, as written in the question. This might be called category archive, right, so categories are paged (in archives). And that's what I mean :) - right now I'm adding stuff to the link based on what permalinks related getter functions of$wp_queryreturn. – hakre Aug 17 '11 at 0:25add_query_arg? – Bainternet♦ Aug 17 '11 at 6:11add_query_argmight be helpful to streamline if permalinks are turned off, will check. I'll add my code so far. – hakre Aug 17 '11 at 7:38add_query_argwould be the way to go imo.. you'd then not need the strpos line. – t31os Aug 17 '11 at 9:11