WordPress.org

Ready to get started?Download WordPress

Forums

WPBook
[resolved] Custom post type to Page wall not working (2 posts)

  1. Weblinkscreations
    Member
    Posted 1 year ago #

    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/

  2. johneckman
    Member
    Plugin Author

    Posted 12 months ago #

    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;
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.