Skip to content

Instantly share code, notes, and snippets.

@rali14
Created August 14, 2015 03:21
Show Gist options
  • Select an option

  • Save rali14/950c602c7d438f0e0469 to your computer and use it in GitHub Desktop.

Select an option

Save rali14/950c602c7d438f0e0469 to your computer and use it in GitHub Desktop.
Display a post Specific URL only on listings with value
function custom_listify_single_job_listing_actions_after() {
global $post;
$url = get_post_meta( $post->ID, 'custom_URL', true );
if (!$url) {
return;
}
echo '<a href="' . esc_url( $url ) . '" class="button">My Button</a>';
}
add_filter( 'listify_single_job_listing_actions_after', 'custom_listify_single_job_listing_actions_after' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment