WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Simple Facebook Connect] Simple Facebook / Simple Twitter Connect and Custom Post Types

[Resolved] [Plugin: Simple Facebook Connect] Simple Facebook / Simple Twitter Connect and Custom Post Types

  • 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

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    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

    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

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [Plugin: Simple Facebook Connect] Simple Facebook / Simple Twitter Connect and Custom Post Types’ is closed to new replies.