How to get category/tag in URL for Pagination links?

Why can you not use the core functions previous_posts_link()/next_posts_link() or posts_nav_link(), all of which already account for the taxonomy archive context? EDIT: I think I understand your question now. You want pagination links, rather than previous/next page links. WordPress also has a native function for pagination links: paginate_links() (Codex ref). Here’s how I use this … Read more

Get paged category link programmatically

This the code I have so far which looks like it does the job, I still wonder if there is a API function for the job: /** * @param (int) $category_id * @param (int) $pagenum * @return string */ function get_category_paged_link($category_id, $pagenum) { global $wp_rewrite; $link = get_category_link($category_id); if ($wp_rewrite->using_permalinks() || $wp_rewrite->using_index_permalinks()) { $link = … Read more

Linking to Post Types from wp-admin

The following should do the trick: <a href=”https://wordpress.stackexchange.com/questions/35141/<?php admin_url(“https://wordpress.stackexchange.com/questions/35141/edit.php?post_type=slides”) ?>”>Slides</a> It’s how it’s done in the source code. The function admin_url() appends the proper admin address. The output of the url should be: http://www.mysite.com/wp-admin/edit.php?post_type=slides

Clicks registering on Preview DNS site

It appears that you have content (pages, posts or widgets) that contain old URL information. An example of a URL that is correct: http://www.hutchisonhaines.co.uk/wp-content/themes/FactoryWP/style.css An example of a URL that is incorrect: http://hutchisonhaines.co.uk.previewdns.com/wp-content/uploads/2012/02/flowers-944×290.jpg The quickest way to fix this problem would be to do a database dump and then run a search and replace program … Read more

WordPress relative links for regular non image links

There’s a couple of things that you might be able to do here depending on how you are creating your links. Are you talking about page content or are you working in the theme template. If in the theme template you can do use the <?php bloginfo(‘url’); ?> to get the base path of the … Read more

All Posts Linking to Author Posts directly

You would need to edit your theme files. You need to search each files looking for something along the lines of <p>All Posts of: <?php the_author_posts_link(); ?></p> and just change that to <p><a href=”https://wordpress.stackexchange.com/questions/70227/<?php echo get_author_posts_url(get_the_author_meta(“ID’)); ?>”>All Posts</a></p>