WordPress.org

Ready to get started?Download WordPress

Forums

Simple Facebook Connect
[resolved] Simple Facebook / Simple Twitter Connect and Custom Post Types (5 posts)

  1. holgee
    Member
    Posted 3 years ago #

    I have installed the Simple Facebook and Simple Twitter Connect Plugin ... everything works fine, Posts are published in my Twitter and Facebook Account. But the only thing is, that the "Facebook Publisher" and "Twitter Publisher" Admin - Tab on the right side is not shown in a Custom Post Type Article .... in a "normal" Article it is shown ... (I mean the Backend, not the Frontend of my WP Installation)

    Is there any posibility to "enable" this tab also in a Custom Post Type Article ?

    I have set up the Custom Post Tpye via the functions.php, not via a Plugin ...

    would be great if somebody could help ...

    thanks a lot !!!!

    Holgee

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    been adding it into the plugin manually myself....for instance, in the twitter publisher module

    // add the meta boxes
    add_action('admin_menu', 'stc_publish_meta_box_add');
    function stc_publish_meta_box_add() {
    	add_meta_box('stc-publish-div', 'Twitter Publisher', 'stc_publish_meta_box', 'post', 'side');
    	add_meta_box('stc-publish-div', 'Twitter Publisher', 'stc_publish_meta_box', 'page', 'side');
    }

    just add another add_meta_box with your CPT

  3. holgee
    Member
    Posted 3 years ago #

    Thanks a lot for your reply !!!!!!

    Only point i don´t get is ...

    do i paste this code in the function.php or directly into the Plugin Code ?

    Sorry ... i´m a little bit confused .... ;)

    many thanks !!!!!!

    Holger

  4. holgee
    Member
    Posted 3 years ago #

    IT WORKS !

    Many thanks for your help !

    I use the following code in the functions.php and it works perfectly ! All Admin Tabs are shown ...

    function ssc_publish_meta_box_add() {
    	add_meta_box('stc-publish-div', 'Twitter Publisher', 'stc_publish_meta_box', '**name of the custom post type**', 'side');
    	add_meta_box('sfc-publish-div', 'Facebook Publisher', 'sfc_publish_meta_box', '**name of the custom post type**' , 'side');
    }
    
    add_action('admin_menu', 'ssc_publish_meta_box_add');

    **name of the custom post type** => put in the label of your custom post type

  5. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    I'm glad to help you help me! I was doing it right in the plugin

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic