Why does WP not use relative links when linking pages?

Your question seems to have been already answered by a user here: https://stackoverflow.com/a/18516783/844732 However it sounds like your problem would be solved by using this plugin: Relative URL Relative URL applies wp_make_link_relative function to links to convert them to relative URLs. Yoast also has some background on relative URLs.

Links open only on new tab or window

Links open in new Tab or Window if the link <a> is added using target=”_blank” (either from HTML or JavaScript). I’ve just checked your site and saw only Twitter links open in new Tab / Window. Must be from the plugin you are using to generate the Twitter feed. Note: JQMIGRATE is installed by WordPress … Read more

Number of External Links in Comments – Moderation Option

Haha, I actually figured out a way to do this. As a plugin, this should work. class JPB_CommentCounter { var $count = 0; function __construct(){ add_filter( ‘pre_comment_content’, array( $this, ‘content’ ), 100 ); add_filter( ‘comment_max_links_url’, array( $this, ‘counter’ ) ); } function JPB_CommentCounter(){ $this->__construct(); } function counter( $num, $url ){ if($this->count < 1) return $num; … Read more

Taxonomy terms with edit/filter link in wp-admin, in the list of custom posts

It doesn’t have it wrapped inside a function you can use, but the following will work: $taxonomy = ‘my-taxonomy’; $taxonomy_object = get_taxonomy( $taxonomy ); $object_type = get_post_type($post_id); if ( $terms = get_the_terms( $post_id, $taxonomy ) ) { $out = array(); foreach ( $terms as $t ) { $posts_in_term_qv = array(); $posts_in_term_qv[‘post_type’] = $object_type; if ( … Read more

get_category_link() is returning nothing

You should be using get_term_link instead, also for consistencys sake and to future proof, use get_terms instead of get_categories. Both work on categories/tags and all custom taxonomies. Also check for the return of a WP_Error object ( returned when an invalid or nonexistent term is passed )