I know there are numerous plugins for sharing a custom post types on social media, but what I want to achieve is to offer social share buttons after job has been submitted.

Here is a template that is being shown after job is successfully submitted, I would like to include share buttons within this template (and that those share buttons automatically pull published post permalink):

global $wp_post_types;

switch ( $job->post_status ) :
    case 'publish' :
        echo '<p>';
        printf( __( '%s You listing was successfully published. You can <a href="%s">view you listing/a>. ', 'wp-job-manager' ), $wp_post_types['job_listing']->labels->singular_name, get_permalink( $job->ID ) );
        echo '</p>';

Is this achievable?


Read more here: Share on social media created wp job manager listing after submission


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: