WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Custom post type to Page wall not working

[Resolved] Custom post type to Page wall not working

  • Hi,

    I installed the plugin v2.54 and i cannot publish custom post types to Page wall. Tried to edit the publish_to_facebook.php file as below but with no luck. Posts are getting published normally. Could you give a help please?

    if(get_post_type($my_post->ID) !=’post’) && (get_post_type($my_post->ID) !=’property’)){ // only do this for posts
    return;
    }

    Thanks in advance.

    Luis

    http://wordpress.org/extend/plugins/wpbook/

Viewing 1 replies (of 1 total)
  • Plugin Author John Eckman

    @johneckman

    Is your custom post type ‘property’?

    If so, that does look like the correct if statement, though it may be missing an open parenthesis:

    if ((get_post_type($my_post->ID) !='post') && (get_post_type($my_post->ID) !='property')){ // only do this for posts
    return;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Custom post type to Page wall not working’ is closed to new replies.