“read more” redirects to the wrong page

function excerpt_readmore($more) { return ‘… <a href=”‘. get_permalink($post->ID) . ‘” class=”readmore”>’ . ‘Read More’ . ‘</a>’; } add_filter(‘excerpt_more’, ‘excerpt_readmore’); Please add above code into functions.php

a WordPress connected to 2 database

Why don’t you rather try to connect 2 wordpress to the same database ? On website B you can heavily restrain the capabilities of users. This way it will be only a sort of mirror. Another path could be to use the rest API from website A to fuel the content from website B. Have … Read more

Not display an image of category of custom post

First of all $category->$term_id is wrong use $category->term_id I don’t think $category->$term_id will give you the desired result For this you must have create some meta for the image in the backend. term_image_id = get_term_meta( $category->term_id, ‘your-term-id’, true ); Here the term id is $category->term_id and the term value is your-term-id Can you please check … Read more