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

    (@johneckman)

    Two options.

    1st, provide a WordPress Excerpt – WPBook should use that if you provide one.

    2nd, edit code. Specifically wpbook/includes/publish_to_facebook.php

    Lines 152-157 in current version:

    if(strlen($wpbook_description) >= 995) {
         $space_index = strrpos(substr($wpbook_description, 0, 995), ' ');
         $short_desc = substr($wpbook_description, 0, $space_index);
         $short_desc .= '...';
         $wpbook_description = $short_desc;
    }

    If you change the two 995 numbers to something quite a bit shorter it will get truncated when you post.

    Thread Starter armen_1982

    (@armen_1982)

    Thanks johneckman, the 2nd option works but want to try the 1st one and dont know how to provide the WordPress Excerpt?

    Plugin Author John Eckman

    (@johneckman)

    @armen_1982 when you are authoring a post in WordPress, underneath the main ‘body’ section for posts, there is an ‘excerpt’ section.

    See https://codex.www.ads-software.com/Excerpt

    If you provide an excerpt, WPBook should use that instead.

    (Note since WP 3.1, the excerpt field may be hidden by default – you may need to show it in screen options)

    Thread Starter armen_1982

    (@armen_1982)

    Thanks!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WPBook] How can I make the posting length less?’ is closed to new replies.