WordPress search seems to look into permalink (which is bad)

When we try searching for example.tld, then the default search query looks into the post title and content with: … (wp_posts.post_title LIKE ‘%example.tld%’) OR (wp_posts.post_content LIKE ‘%example.tld%’) … When we add an attachment or a local link, into the post content, we normally get the full url, for example: http://example.tld/wp-content/uploads/2015/05/image.jpg so I would think that … Read more

permalinks of subcategory and posts

use the following code should get you through your problem. just pass the id of parent category in $term_id variable <?php $term_id = ; // id for the parent category $taxonomy_name=”category”; $termchildren = get_term_children( $term_id, $taxonomy_name ); foreach ( $termchildren as $child ) : $term = get_term_by( ‘id’, $child, $taxonomy_name ); ?> <h3><a href=”https://wordpress.stackexchange.com/questions/191436/<?php echo … Read more

Two urls for one website

Move the wordpress site to his new domain. Make sure everything is working, hint: update all url’s using Velvet Blues Plugin Point the old domain to a directory containing only two files: A file named “index.php” containing: <?php $goto = $_SERVER[“REQUEST_URI”]; header(“HTTP/1.1 301 Moved Permanently”); header( “Location: http://new-domain-name.ch” . $goto ); ?> And a file … Read more