set new link as permalink
I would think something is wrong here: $meta = get_post_meta( $post->ID, $extlink , TRUE ); This is the function: get_post_meta( int $post_id, string $key = ”, bool $single = false ) You are setting the $extlink as the $key parameter, but it is really a meta key? From your explanation, it seems to be a … Read more