WordPress link management

You could create a single wordpress page with a PHP or meta redirect to the final URL. Then each of your blog posts would link to that single page. It would work, but I reckon that once you got past about 50 or so outgoing link pages it would get pretty hard to manage easily. … Read more

Remove all link title attributes

Do you want to preserve the images title attribute? If not here is a code that fixes that for you: add_filter(‘the_content’, ‘remove_title_attr’); function remove_title_attr($text) { // Get all title=”…” tags from the html. $result = array(); preg_match_all(‘|title=”[^”]*”|U’, $text, $result); // Replace all occurances with an empty string. foreach($result[0] as $html_tag) { $text = str_replace($html_tag, ”, … Read more

Anchor link on single.php

function new_excerpt_more( $more ) { return ‘ <a href=”‘. get_permalink( get_the_ID() ) . ‘#placeholder”> ‘ . __(‘<br/><br/> Read More’) . ‘</a>’; } add_filter( ‘excerpt_more’, ‘new_excerpt_more’); I think that should do it.

List pages including both parent and child pages

I don’t think there is a way to express that precisely in its arguments. You could work around that by building array of page IDs which includes parent and children set as desired. $pages = get_posts( [ ‘post_parent’ => $page_id, ‘post_type’ => ‘page’, ‘fields’ => ‘ids’, ] ); $pages[] = $page_id; wp_list_pages( [ ‘include’ => … Read more

WordPress Intranet Link Not Working

I think it’ll be messy. You’ll need browser extensions or per-browser settings, because you’re basically asking the browser to access a file:// link which is not local to the machine, and I think many modern browsers have locked that down for security reasons. Sorry I can’t be the bearer of better news. 🙂