Posted By

jefferis on 11/25/18


Tagged

wordpress settings media snippets social sharing facebook Jetpack


Versions (?)

Word Press Post Type sample code for Posting to Facebook and Social Media


 / Published in: PHP
 

Word Press Post Type sample function code for Posting to Facebook and Social Media Using the Snippets Plugin and Jetpack Sharing. Replace photographers, etc. with your post type category.

  1. add_action('init', 'my_custom_init');
  2. function my_custom_init() {
  3. add_post_type_support( 'photographers', 'publicize' );
  4. add_post_type_support( 'events', 'publicize' );
  5. add_post_type_support( 'supporters', 'publicize' );
  6. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: joneslaraa on December 5, 2018

I have to make a website for Business Essay Writing and I was wondering I should make on Word Press should I do this? I need little guideline could you please help me?

You need to login to post a comment.