Custom Canonical URLs

Unfortunately, there’s no filter in the rel_canonical() function. But you can remove that function from wp_head altogether and write your own. Try adding this to the functions.php at your old domain: remove_action( ‘wp_head’, ‘rel_canonical’ ); add_action( ‘wp_head’, ‘new_rel_canonical’ ); function new_rel_canonical() { if ( !is_singular() ) return; global $wp_the_query; if ( !$id = $wp_the_query->get_queried_object_id() ) … Read more

How to hide sensitve page from google spiders and non-membres in wordpress!

Use password protection mechanism Alterative you can use wordpress hook in your theme to show your post/page only for administrators this way: add_action(‘wp’, function() { if(is_page(‘my-data’) && !current_user_can(‘manage_options’)) die(“123”) }); Note: don’t use this code. It is just for demonstration. Better use hook template_redirect or something else. We need more info about your environment to … Read more

Automatic SEO for wordpress [closed]

take a look at WordPress SEO by Yoast it will cover : 1) make the title of the page, the title of the post 2) make the description based on the first paragraph as for your #3 make the keyword meta by parsing the whole post, retrieve all the relevant word that are more that … Read more

Reactjs headless WordPress theme configure SEO

Which is the best way to solve it. There is no WP based solution to solve this. Any WP solutions will modify the output of a WP theme, but you don’t have a WP theme. What you have is a React web application that talks to a REST API and gives the appearance of a … Read more