gistfile1.phtml

ID, ‘_company_website’, true );
$offerta_url = get_post_meta( $post->ID, ‘_company_offerta’, true );

if( $offerta_url ) echo “VAI ALL ‘OFFERTA“;
echo ‘Vai al sito‘;
}
add_filter( ‘listify_single_job_listing_actions_after’, ‘custom_listify_single_job_listing_actions_after’ );

gistfile1.phtml

<?php

function custom_listify_single_job_listing_actions_after() {
  global $post;

  $url = get_post_meta( $post->ID, '_company_website', true );
  $offerta_url = get_post_meta( $post->ID, '_company_offerta', true );
  
  if( $offerta_url ) echo "<a href="" . esc_url( $url ) . "" class="button" target="_blank">VAI ALL 'OFFERTA</a>";
  echo '<a href="' . esc_url( $url ) . '" class="button" target="_blank">Vai al sito</a>';
}
add_filter( 'listify_single_job_listing_actions_after', 'custom_listify_single_job_listing_actions_after' );
No comments yet.

Leave a Reply