Hi, Stiofan helped me with setting up this duplicate link on the listing detail page. I need to remove the rel=“nofollow” attribute attached to this link. Please advise. Thank you!
Original post: https://wpgeodirectory.com/support/topic/duplicate-sidebar-link/#post-429450
Snippet:
add_action( 'geodir_details_main_content', '_my_website_link_output', 35 );
function _my_website_link_output() {
global $post;
if ( empty( $post->post_type ) ) {
return;
}
$cf = (array)geodir_get_field_infoby( 'htmlvar_name', 'geodir_website', $post->post_type );
if ( ! empty( $cf ) ) {
if ( empty( $cf['name'] ) && ! empty( $cf['htmlvar_name'] ) ) {
$cf['name'] = $cf['htmlvar_name'];
}
echo geodir_cf_url( '', 'detail', $cf );
}
}